Skip to content

Commit

Permalink
Replace removed sorts and compacts from scan_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlo-hrt committed Oct 18, 2024
1 parent 8fe2147 commit ec7ee3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/gocase/unit/scan/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func TestScanEmptyKey(t *testing.T) {
require.NoError(t, rdb.SAdd(ctx, "sadd_key", "", "fab", "fiz", "foobar").Err())
keys, _, err := rdb.SScan(ctx, "sadd_key", 0, "*", 10000).Result()
require.NoError(t, err)
slices.Sort(keys)
keys = slices.Compact(keys)
require.Equal(t, []string{"", "fab", "fiz", "foobar"}, keys)
}

Expand Down

0 comments on commit ec7ee3f

Please sign in to comment.