diff --git a/models/query_test.go b/models/query_test.go index d7b7496..40363eb 100644 --- a/models/query_test.go +++ b/models/query_test.go @@ -9,8 +9,14 @@ import ( ) func init() { - config.InitConfig("../config.yaml") - db.InitDb() + err := config.InitConfig("../config.yaml") + if err != nil { + panic(err) + } + err = db.InitDb() + if err != nil { + panic(err) + } } func TestFind(t *testing.T) { type args struct {