This commit is contained in:
ziming 2025-03-26 16:24:49 +08:00
parent ba06b05e8f
commit 6dcb6f1b38
1 changed files with 2 additions and 4 deletions

View File

@ -136,8 +136,7 @@ func Test_gorm_db(t *testing.T) {
MaxLifetime: durationpb.New(60), // 5分钟 MaxLifetime: durationpb.New(60), // 5分钟
IsDebug: false, IsDebug: false,
} }
gormDb, cleanup := db(data) gormDb := db(data)
defer cleanup()
start2 := time.Now() start2 := time.Now()
@ -186,8 +185,7 @@ func Test_db(t *testing.T) {
MaxLifetime: maxLifetime, MaxLifetime: maxLifetime,
IsDebug: false, IsDebug: false,
} }
gormDb, cleanup := db(data) gormDb := db(data)
defer cleanup()
start2 := time.Now() start2 := time.Now()