From 288cedb4a4b7c936877a685b88e79995ab31f35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Fri, 23 May 2025 12:30:40 +0200 Subject: [PATCH] chore: align ruedis expiration test with redis --- rueidis/rueidis_test.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rueidis/rueidis_test.go b/rueidis/rueidis_test.go index 2d51ec9d..74486ece 100644 --- a/rueidis/rueidis_test.go +++ b/rueidis/rueidis_test.go @@ -82,7 +82,7 @@ func Test_Rueidis_Get(t *testing.T) { require.Equal(t, val, result) } -func Test_Rueidis_Set_Expiration(t *testing.T) { +func Test_Rueidis_Expiration(t *testing.T) { var ( key = "john" val = []byte("doe") @@ -96,13 +96,6 @@ func Test_Rueidis_Set_Expiration(t *testing.T) { require.NoError(t, err) time.Sleep(1100 * time.Millisecond) -} - -func Test_Rueidis_Get_Expired(t *testing.T) { - key := "john" - - testStore := newTestStore(t) - defer testStore.Close() result, err := testStore.Get(key) require.NoError(t, err)