Skip to content

Commit

Permalink
Avoided adding keys to test KEYS invalid pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlo-hrt committed Oct 14, 2024
1 parent bc7f908 commit 222a52d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/gocase/unit/keyspace/keyspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ func TestKeyspace(t *testing.T) {
})

t.Run("KEYS with invalid pattern", func(t *testing.T) {
for _, key := range []string{"*ab1", "*ab2", "*ab3"} {
require.NoError(t, rdb.Set(ctx, key, "hello", 0).Err())
}
require.Error(t, rdb.Keys(ctx, "*ab*").Err())
})

Expand Down

0 comments on commit 222a52d

Please sign in to comment.