@@ -1,7 +1,6 @@
package online
import (
- "github.com/gogf/gf/database/gredis"
"reflect"
"testing"
"time"
@@ -37,11 +36,7 @@ func checkOfflineStatus(t *testing.T, mgr *Manager) {
}
func TestManager(t *testing.T) {
- mgr := NewManager(gredis.Config{
- Host: "127.0.0.1",
- Port: 6379,
- Db: 1,
- })
+ mgr := NewManager("127.0.0.1", 6379, 1)
status := Status{
ClientIP: "3.3.3.3",
@@ -8,7 +8,7 @@ const (
flagRedisHost = "redis_host"
flagRedisPort = "redis_port"
flagRedisDb = "redis_db"
- defaultRedisHost = "127.0.0.1:6379"
+ defaultRedisHost = "127.0.0.1"
)
var (