From f0dae59d181aea907c7968a9a3a7f2a435a19140 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 5 Nov 2022 22:44:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/query_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 {