From 11f7187367f2b2f0c675f8c816b864db8c994a19 Mon Sep 17 00:00:00 2001 From: oldme <45782393+oldme-git@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:29:41 +0800 Subject: [PATCH] fix: unit test of dm failed occasionally (#3369) --- contrib/drivers/dm/dm_z_unit_basic_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/drivers/dm/dm_z_unit_basic_test.go b/contrib/drivers/dm/dm_z_unit_basic_test.go index c1322ce77..44e073606 100644 --- a/contrib/drivers/dm/dm_z_unit_basic_test.go +++ b/contrib/drivers/dm/dm_z_unit_basic_test.go @@ -394,11 +394,12 @@ func Test_DB_BatchInsert_Struct(t *testing.T) { // batch insert struct table := "A_tables" createInitTable(table) + defer dropTable(table) gtest.C(t, func(t *gtest.T) { user := &User{ ID: 700, AccountName: "BatchInsert_Struct_700", - // CreatedTime: time.Now(), + CreatedTime: time.Now(), } result, err := db.Model(table).Insert(user) t.AssertNil(err)