Skip to content

Commit

Permalink
GODRIVER_2701 PR
Browse files Browse the repository at this point in the history
  • Loading branch information
timothy-kim-mongo committed Jul 10, 2024
1 parent 8769041 commit abbec79
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mongo/integration/index_view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func TestIndexView(t *testing.T) {
},
},
// Key is automatically set to Full Text Search for any text index
index: map[string]interface{}{"_fts": "text", "_ftsx": 1},
index: bson.D{{"_fts", "text"}, {"_ftsx", 1}},
want: "plot1_text_plot2_text",
},
}
Expand All @@ -678,15 +678,9 @@ func TestIndexView(t *testing.T) {
assert.NoError(mt, err)
assert.Equal(mt, len(test.models), len(indexNames), "expected %v index names, got %v", len(test.models), len(indexNames))

time.Sleep(time.Second)
// decrease slowly

_, err = iv.DropWithKey(context.Background(), test.index)
assert.Nil(mt, err, "DropOne error: %v", err)

time.Sleep(time.Second)
// decrease slowly

cursor, err := iv.List(context.Background())
assert.Nil(mt, err, "List error: %v", err)
for cursor.Next(context.Background()) {
Expand Down

0 comments on commit abbec79

Please sign in to comment.