You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
589 B

package service
import (
"context"
"testing"
"go-common/app/infra/config/model"
"go-common/library/log"
)
func TestConfig(t *testing.T) {
arg := &model.ArgConf{
App: "zjx_test",
BuildVer: "1_0_0_0",
Ver: 62,
Env: "3",
}
if err := svr.confSvr.Push(context.TODO(), arg); err != nil {
log.Error("push(%v) error(%v)", arg, err)
t.FailNow()
}
argT := &model.ArgToken{
App: "zjx_test",
Env: "3",
Token: "123",
}
if err := svr.confSvr.SetToken(context.TODO(), argT); err != nil {
log.Error("push(%v) error(%v)", argT, err)
t.FailNow()
}
}