mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
fix tests
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user