diff --git a/internal/data/gorm_test.go b/internal/data/gorm_test.go index 28c7933..fc8d91c 100644 --- a/internal/data/gorm_test.go +++ b/internal/data/gorm_test.go @@ -136,8 +136,7 @@ func Test_gorm_db(t *testing.T) { MaxLifetime: durationpb.New(60), // 5分钟 IsDebug: false, } - gormDb, cleanup := db(data) - defer cleanup() + gormDb := db(data) start2 := time.Now() @@ -186,8 +185,7 @@ func Test_db(t *testing.T) { MaxLifetime: maxLifetime, IsDebug: false, } - gormDb, cleanup := db(data) - defer cleanup() + gormDb := db(data) start2 := time.Now()