Skip to content

Commit

Permalink
Wait for pause should check process status instead of logs
Browse files Browse the repository at this point in the history
Signed-off-by: naglera <[email protected]>
  • Loading branch information
naglera committed Jul 29, 2024
1 parent b4d96ca commit 0544954
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration/dual-channel-replication.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ proc get_client_id_by_last_cmd {r cmd} {

proc wait_and_resume_process idx {
set pid [srv $idx pid]
wait_for_log_messages $idx {"*Process is about to stop.*"} 0 2000 1
wait_for_condition 50 1000 {
[exec ps -o state= -p $pid] eq "T" ||
[exec ps -o state= -p $pid] eq "Z"
} else {
fail "Process $pid didn't stop"
}
resume_process $pid
}

Expand Down

0 comments on commit 0544954

Please sign in to comment.