From ba248c9967ed07da01bb92e04e454663cfe047b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Fri, 23 May 2025 12:25:20 +0200 Subject: [PATCH] chore: align valkey expiration test with redis --- valkey/valkey_test.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/valkey/valkey_test.go b/valkey/valkey_test.go index ab4bd95f..997462e9 100644 --- a/valkey/valkey_test.go +++ b/valkey/valkey_test.go @@ -112,7 +112,7 @@ func Test_Valkey_Get(t *testing.T) { require.Equal(t, val, result) } -func Test_Valkey_Set_Expiration(t *testing.T) { +func Test_Valkey_Expiration(t *testing.T) { var ( key = "john" val = []byte("doe") @@ -126,13 +126,6 @@ func Test_Valkey_Set_Expiration(t *testing.T) { require.NoError(t, err) time.Sleep(1100 * time.Millisecond) -} - -func Test_Valkey_Get_Expired(t *testing.T) { - key := "john" - - testStore := newTestStore(t) - defer testStore.Close() result, err := testStore.Get(key) require.NoError(t, err)