This commit is contained in:
6543 2023-08-06 19:13:32 +02:00
parent 5c957acce4
commit efc36dec89
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
1 changed files with 1 additions and 1 deletions

View File

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