From e31ebbdfdb3b448d7ba8e8266ba885c03a92fc52 Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 20 May 2024 11:14:58 -0600 Subject: [PATCH] GODRIVER-3038 Drop collection before test --- internal/integration/client_side_encryption_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/integration/client_side_encryption_test.go b/internal/integration/client_side_encryption_test.go index 685692f526..ed349f65e5 100644 --- a/internal/integration/client_side_encryption_test.go +++ b/internal/integration/client_side_encryption_test.go @@ -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)