mirror of
https://github.com/gofiber/storage.git
synced 2025-10-06 09:07:14 +08:00
chore: add suggestions from coderabbit
This commit is contained in:
@@ -149,6 +149,10 @@ func Test_MYSQL_Set_Expiration(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
time.Sleep(1100 * time.Millisecond)
|
time.Sleep(1100 * time.Millisecond)
|
||||||
|
|
||||||
|
result, err := testStore.Get(key)
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.Zero(t, len(result), "Key should have expired")
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_MYSQL_Get_Expired(t *testing.T) {
|
func Test_MYSQL_Get_Expired(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user