From 16f6b54c951affde26e58261344fef5509bc4870 Mon Sep 17 00:00:00 2001 From: lijunshi Date: Sun, 28 Apr 2024 09:52:49 +0800 Subject: [PATCH] fix:fix ci error 2 --- tests/schema_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/schema_test.go b/tests/schema_test.go index 78d02ed8..ab3a55b3 100644 --- a/tests/schema_test.go +++ b/tests/schema_test.go @@ -753,16 +753,16 @@ func getKeysFromMap(m map[string]*schemas.Index) []string { } func TestSync2_3(t *testing.T) { - { + func() { type SyncTestUser struct { Id int `xorm:"pk autoincr 'id'"` Name string `xorm:"'name' notnull comment('nickname')" json:"name"` } assert.NoError(t, PrepareEngine()) assert.NoError(t, testEngine.Sync2(new(SyncTestUser))) - } + }() - { + func() { // add comment for id column type SyncTestUser struct { Id int `xorm:"pk autoincr 'id' comment('primary key')"` @@ -780,6 +780,6 @@ func TestSync2_3(t *testing.T) { assert.EqualValues(t, tables[0].GetColumn("id").Nullable, tableInfo.GetColumn("id").Nullable) assert.EqualValues(t, tables[0].GetColumn("id").Comment, tableInfo.GetColumn("id").Comment) assert.EqualValues(t, tables[0].GetColumn("id").IsPrimaryKey, tableInfo.GetColumn("id").IsPrimaryKey) - } + }() } \ No newline at end of file