Skip to content

Commit

Permalink
GODRIVER-3038 Drop collection before test
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed May 20, 2024
1 parent 8b7730c commit e31ebbd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/integration/client_side_encryption_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,11 +688,10 @@ func TestFLEIndexView(t *testing.T) {

mt.Cleanup(func() { client.Disconnect(context.Background()) })

err = client.Database("db").CreateCollection(context.Background(), "coll")
assert.NoError(mt, err)

coll := client.Database("db").Collection("coll")
mt.Cleanup(func() { coll.Drop(context.Background()) })

err = coll.Drop(context.Background())
assert.Nil(mt, err, "Drop error: %v", err)

mt.Run("create many", func(mt *mtest.T) {
createIndexes(mt, coll, 2)
Expand Down

0 comments on commit e31ebbd

Please sign in to comment.