Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Jun 28, 2024
1 parent 97a294d commit 7904bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/cluster/slot-stats.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ start_cluster 1 0 {tags {external:skip cluster}} {
# -----------------------------------------------------------------------------

start_cluster 1 0 {tags {external:skip cluster}} {

# SET keys for target hashslots, to encourage ordering.
set hash_tags [list 0 1 2 3 4]
set num_keys 1
Expand All @@ -220,6 +220,7 @@ start_cluster 1 0 {tags {external:skip cluster}} {

test "CLUSTER SLOT-STATS ORDERBY DESC correct ordering" {
set orderby "key-count"
assert_error "ERR*" {R 0 CLUSTER SLOT-STATS ORDERBY $orderby DESC LIMIT -1}
set slot_stats [R 0 CLUSTER SLOT-STATS ORDERBY $orderby DESC]
assert_slot_stats_monotonic_descent $slot_stats $orderby
}
Expand Down

0 comments on commit 7904bc4

Please sign in to comment.