From 6dcb6f1b38eda4384f8e35622a26dbab71bc1998 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 26 Mar 2025 16:24:49 +0800 Subject: [PATCH] test --- internal/data/gorm_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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()