diff --git a/tests/schema_test.go b/tests/schema_test.go index c3d992fe..db9f9e8f 100644 --- a/tests/schema_test.go +++ b/tests/schema_test.go @@ -702,7 +702,7 @@ func TestSyncWithOptions(t *testing.T) { result, err = testEngine.SyncWithOptions(xorm.SyncOptions{IgnoreConstrains: true}, &SyncWithOpts2{}) assert.NoError(t, err) assert.NotNil(t, result) - indices = getIndicesOfBeanFromDB(t, &SyncWithOpts1{}) + indices := getIndicesOfBeanFromDB(t, &SyncWithOpts1{}) assert.Len(t, indices, 2) assert.ElementsMatch(t, []string{"ttt", "index"}, getKeysFromMap(indices))