mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
chore: align ruedis expiration test with redis
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user