Skip to content

Commit

Permalink
Fix check for no keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby committed Oct 30, 2023
1 parent 7921dc7 commit 0e92f33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions memory/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func Test_Storage_Memory_Set_Expiration(t *testing.T) {

keys, err := testStore.Keys()
require.NoError(t, err)
require.Zero(t, keys)
require.Nil(t, keys)
}

func Test_Storage_Memory_Get_NotExist(t *testing.T) {
Expand All @@ -89,7 +89,7 @@ func Test_Storage_Memory_Get_NotExist(t *testing.T) {

keys, err := testStore.Keys()
require.NoError(t, err)
require.Zero(t, keys)
require.Nil(t, keys)
}

func Test_Storage_Memory_Delete(t *testing.T) {
Expand All @@ -115,7 +115,7 @@ func Test_Storage_Memory_Delete(t *testing.T) {

keys, err = testStore.Keys()
require.NoError(t, err)
require.Zero(t, keys)
require.Nil(t, keys)
}

func Test_Storage_Memory_Reset(t *testing.T) {
Expand Down Expand Up @@ -145,7 +145,7 @@ func Test_Storage_Memory_Reset(t *testing.T) {

keys, err = testStore.Keys()
require.NoError(t, err)
require.Zero(t, keys)
require.Nil(t, keys)
}

func Test_Storage_Memory_Close(t *testing.T) {
Expand Down

0 comments on commit 0e92f33

Please sign in to comment.