fix tests

This commit is contained in:
Muhammed Efe Cetin
2025-04-22 23:57:29 +03:00
parent 8dcdba4a72
commit ba32290665
11 changed files with 81 additions and 72 deletions

View File

@@ -69,6 +69,9 @@ func Test_AzureBlob_GetWithContext(t *testing.T) {
val = []byte("doe")
)
testStore := newTestStore(t)
defer testStore.Close()
err := testStore.Set(key, val, 0)
require.NoError(t, err)
@@ -99,6 +102,9 @@ func Test_AzureBlob_SetWithContext(t *testing.T) {
val = []byte("doe")
)
testStore := newTestStore(t)
defer testStore.Close()
ctx, cancel := context.WithCancel(context.Background())
cancel()
@@ -137,6 +143,9 @@ func Test_AzureBlob_DeleteWithContext(t *testing.T) {
val = []byte("doe")
)
testStore := newTestStore(t)
defer testStore.Close()
err := testStore.Set(key, val, 0)
require.NoError(t, err)