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

@@ -26,6 +26,9 @@ func Test_S3_SetWithContext(t *testing.T) {
val = []byte("doe")
)
testStore := newTestStore(t)
defer testStore.Close()
ctx, cancel := context.WithCancel(context.Background())
cancel()
@@ -72,6 +75,9 @@ func Test_S3_GetWithContext(t *testing.T) {
val = []byte("doe")
)
testStore := newTestStore(t)
defer testStore.Close()
err := testStore.Set(key, val, 0)
require.NoError(t, err)
@@ -118,6 +124,9 @@ func Test_S3_DeleteWithContext(t *testing.T) {
val = []byte("doe")
)
testStore := newTestStore(t)
defer testStore.Close()
err := testStore.Set(key, val, 0)
require.NoError(t, err)
@@ -159,6 +168,9 @@ func Test_S3_Reset(t *testing.T) {
func Test_S3_ResetWithContext(t *testing.T) {
val := []byte("doe")
testStore := newTestStore(t)
defer testStore.Close()
err := testStore.Set("john1", val, 0)
require.NoError(t, err)