From 2cfc594623d080c7423a691f7144e4d82ccbeddf Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sat, 29 Apr 2023 20:24:08 +0200 Subject: Revert change in caronte_test.go --- caronte_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/caronte_test.go b/caronte_test.go index 0628e72..76c776f 100644 --- a/caronte_test.go +++ b/caronte_test.go @@ -52,8 +52,7 @@ func NewTestStorageWrapper(t *testing.T) *TestStorageWrapper { storage, err := NewMongoStorage(mongoHost, port, dbName) require.NoError(t, err) - ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) - defer cancel() + ctx, _ := context.WithTimeout(context.Background(), 10*time.Second) return &TestStorageWrapper{ DbName: dbName, -- cgit v1.2.3-70-g09d2