Cluster migration test cleanup. (#8726)
* Dump more output on error (always, cluster tests currently have no verbose flag). * Slow down redis-cli check iteration.
This commit is contained in:
parent
371d7f120f
commit
9b6bb14eb5
@ -4,14 +4,15 @@ proc fix_cluster {addr} {
|
|||||||
set code [catch {
|
set code [catch {
|
||||||
exec ../../../src/redis-cli {*}[rediscli_tls_config "../../../tests"] --cluster fix $addr << yes
|
exec ../../../src/redis-cli {*}[rediscli_tls_config "../../../tests"] --cluster fix $addr << yes
|
||||||
} result]
|
} result]
|
||||||
if {$code != 0 && $::verbose} {
|
if {$code != 0} {
|
||||||
puts $result
|
puts $result
|
||||||
}
|
}
|
||||||
assert {$code == 0}
|
assert {$code == 0}
|
||||||
assert_cluster_state ok
|
assert_cluster_state ok
|
||||||
wait_for_condition 1000 10 {
|
wait_for_condition 100 100 {
|
||||||
[catch {exec ../../../src/redis-cli {*}[rediscli_tls_config "../../../tests"] --cluster check $addr} _] == 0
|
[catch {exec ../../../src/redis-cli {*}[rediscli_tls_config "../../../tests"] --cluster check $addr} result] == 0
|
||||||
} else {
|
} else {
|
||||||
|
puts $result
|
||||||
fail "Cluster could not settle with configuration"
|
fail "Cluster could not settle with configuration"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user