Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Jan 11, 2025
1 parent 523f1e3 commit 8efc449
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/latency-monitor.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,15 @@ tags {"needs:debug"} {
assert_match "*wrong number of arguments for 'latency|help' command" $e
}
}

start_cluster 1 1 {tags {"latency-monitor cluster external:skip needs:latency"} overrides {latency-monitor-threshold 1}} {
test "Cluster config file latency" {
# This test just a sanity test so that we can make sure the code path is cover.
# We don't assert anything since we can't be sure whether it will be counted.
R 0 cluster saveconfig
R 1 cluster saveconfig
R 1 cluster failover force
R 0 latency latest
R 1 latency latest
}
}

0 comments on commit 8efc449

Please sign in to comment.