go-common/app/job/main/answer/conf/conf_test.go
2019-04-22 18:49:16 +08:00

19 lines
237 B
Go

package conf
import (
"flag"
"testing"
)
func TestInit(t *testing.T) {
flag.Set("conf", "../cmd/answer-job-test.toml")
flag.Parse()
var err error
if err = Init(); err != nil {
t.Fatal(err)
}
if Conf == nil {
t.Fatal()
}
}