Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metadata updates for dropIndexes #3358

Merged
merged 8 commits into from
Sep 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
rumyantseva committed Sep 15, 2023
commit c61f4f437493238d3b0eee2511fc2dbf1b35bc03
8 changes: 4 additions & 4 deletions internal/backends/sqlite/metadata/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,10 @@ func TestIndexesCreateDrop(t *testing.T) {
})

t.Run("CheckSettingsAfterCreation", func(t *testing.T) {
err := r.initCollections(ctx, dbName, db)
err = r.initCollections(ctx, dbName, db)
require.NoError(t, err)

collection := r.CollectionGet(ctx, dbName, collectionName)
collection = r.CollectionGet(ctx, dbName, collectionName)
require.Equal(t, 3, len(collection.Settings.Indexes))
})

Expand All @@ -438,10 +438,10 @@ func TestIndexesCreateDrop(t *testing.T) {
})

t.Run("CheckSettingsAfterDrop", func(t *testing.T) {
err := r.initCollections(ctx, dbName, db)
err = r.initCollections(ctx, dbName, db)
require.NoError(t, err)

collection := r.CollectionGet(ctx, dbName, collectionName)
collection = r.CollectionGet(ctx, dbName, collectionName)
require.Equal(t, 1, len(collection.Settings.Indexes))
})
}