diff options
-rw-r--r-- | caronte_test.go | 3 |
1 files changed, 1 insertions, 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, |