Skip to content

Commit

Permalink
Use pause_process to stop a node to make Valgrind happy, hopefully
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Xie <[email protected]>
  • Loading branch information
PingXie committed May 16, 2024
1 parent 7a9951f commit 9aeeee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/cluster/slot-migration.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,12 @@ start_cluster 3 3 {tags {external:skip cluster} overrides {cluster-allow-replica
}
}

start_cluster 3 3 {tags {external:skip cluster} overrides {crash-memcheck-enabled no cluster-allow-replica-migration no cluster-node-timeout 1000} } {
start_cluster 3 3 {tags {external:skip cluster} overrides {cluster-allow-replica-migration no cluster-node-timeout 1000} } {
set R1_id [R 1 CLUSTER MYID]

test "CLUSTER SETSLOT with an explicit timeout" {
# Simulate a replica crash
catch {R 3 DEBUG SEGFAULT} e
# trigger a replica failure
pause_process [srv -3 pid]

# Setslot with an explicit 1ms timeoout
set start_time [clock milliseconds]
Expand Down

0 comments on commit 9aeeee5

Please sign in to comment.