Skip to content

Commit

Permalink
Account for scan duplicates in valkey-cli test
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
zuiderkwast committed Oct 14, 2024
1 parent 7a16526 commit 364e1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/valkey-cli.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,13 @@ if {!$::tls} { ;# fake_redis_node doesn't support TLS
populate 1000 key: 1
# basic use
assert_equal 1000 [llength [split [run_cli --scan]]]
assert_equal 1000 [llength [lsort -unique [split [run_cli --scan]]]]
# pattern
assert_equal {key:2} [run_cli --scan --pattern "*:2"]
assert_equal {key:2} [lsort -unique [split [run_cli --scan --pattern "*:2"]]]
# pattern matching with a quoted string
assert_equal {key:2} [run_cli --scan --quoted-pattern {"*:\x32"}]
assert_equal {key:2} [lsort -unique [split [run_cli --scan --quoted-pattern {"*:\x32"}]]]
}
proc test_valkey_cli_repl {} {
Expand Down

0 comments on commit 364e1f7

Please sign in to comment.