diff options
author | VaiTon | 2023-04-29 18:24:08 +0000 |
---|---|---|
committer | VaiTon | 2023-04-29 18:24:08 +0000 |
commit | 2cfc594623d080c7423a691f7144e4d82ccbeddf (patch) | |
tree | b33e7efd4a5128206edbe168a36faa7afc16d9fa | |
parent | 195450507328055200337c1138cdaeaab47c18d5 (diff) |
Revert change in caronte_test.go
-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, |