|
|
@@ -3,6 +3,7 @@ package svc |
|
|
|
import ( |
|
|
|
"applet/app/cfg" |
|
|
|
"applet/app/db" |
|
|
|
"applet/app/utils/cache" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es" |
|
|
|
"testing" |
|
|
|
) |
|
|
@@ -20,6 +21,7 @@ func TestEggEnergyAutoUpdateUserAccess(t *testing.T) { |
|
|
|
Path: "tmp/%s.log", |
|
|
|
} |
|
|
|
db.InitDB(&dbcfg) |
|
|
|
cache.NewRedis("127.0.0.1:6379") |
|
|
|
es.Init("http://123.57.140.192:9200/", "elastic", "fnuo123") |
|
|
|
EggEnergyAutoUpdateUserAccess(db.Db) |
|
|
|
} |