From 8f3bea39566a76fb4737ec132c2e98b01cdc5f65 Mon Sep 17 00:00:00 2001 From: Davide Bianchi Date: Thu, 14 Nov 2024 18:14:35 +0100 Subject: [PATCH] fix: test cleanup --- internal/testutils/mongo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/testutils/mongo.go b/internal/testutils/mongo.go index 57080a9..9d24394 100644 --- a/internal/testutils/mongo.go +++ b/internal/testutils/mongo.go @@ -56,10 +56,10 @@ func MongoCollection(t *testing.T, mongoURL, collection, db string) *mongo.Colle coll := client.Database(db).Collection(collection) t.Cleanup(func() { - // err := coll.Drop(context.Background()) - // require.NoError(t, err) - // err = client.Database(db).Drop(ctx) - // require.NoError(t, err) + err := coll.Drop(context.Background()) + require.NoError(t, err) + err = client.Database(db).Drop(ctx) + require.NoError(t, err) err = client.Disconnect(ctx) require.NoError(t, err) })