Skip to content

Commit

Permalink
code review from Ping
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Jul 16, 2024
1 parent 0f34526 commit 1355c06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/support/util.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ proc verify_log_message {srv_idx pattern from_line} {
incr from_line
set result [exec tail -n +$from_line < [srv $srv_idx stdout]]
if {![string match $pattern $result]} {
error "assertion:expected message not found in log file: $pattern"
fail "expected message not found in log file: $pattern"
}
}

Expand All @@ -185,7 +185,7 @@ proc verify_no_log_message {srv_idx pattern from_line} {
incr from_line
set result [exec tail -n +$from_line < [srv $srv_idx stdout]]
if {[string match $pattern $result]} {
error "assertion:expected message found in log file: $pattern"
fail "expected message found in log file: $pattern"
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/cluster/failover2.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ start_cluster 3 4 {tags {external:skip cluster} overrides {cluster-ping-interval
}
}

test "wait new failover" {
test "wait for new failover" {
wait_for_condition 1000 50 {
[s $replica_to_be_primary role] == "master"
} else {
Expand Down

0 comments on commit 1355c06

Please sign in to comment.