Fix timing issue in cluster-shards tests (#1243)
The cluster-node-timeout is 3000 in our tests, the timing test wasn't succeeding, so extending the wait_for made them much more reliable. Signed-off-by: Binbin <binloveplay1314@qq.com>
This commit is contained in:
parent
0d7b2344b2
commit
a102852d5e
@ -117,7 +117,7 @@ test "Kill a node and tell the replica to immediately takeover" {
|
|||||||
|
|
||||||
# Primary 0 node should report as fail, wait until the new primary acknowledges it.
|
# Primary 0 node should report as fail, wait until the new primary acknowledges it.
|
||||||
test "Verify health as fail for killed node" {
|
test "Verify health as fail for killed node" {
|
||||||
wait_for_condition 50 100 {
|
wait_for_condition 1000 50 {
|
||||||
"fail" eq [dict get [get_node_info_from_shard $node_0_id 4 "node"] "health"]
|
"fail" eq [dict get [get_node_info_from_shard $node_0_id 4 "node"] "health"]
|
||||||
} else {
|
} else {
|
||||||
fail "New primary never detected the node failed"
|
fail "New primary never detected the node failed"
|
||||||
|
@ -42,7 +42,7 @@ start_cluster 3 3 {tags {external:skip cluster}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "Verify health as fail for killed node" {
|
test "Verify health as fail for killed node" {
|
||||||
wait_for_condition 50 100 {
|
wait_for_condition 1000 50 {
|
||||||
"fail" eq [dict get [get_node_info_from_shard $node_0_id $validation_node "node"] "health"]
|
"fail" eq [dict get [get_node_info_from_shard $node_0_id $validation_node "node"] "health"]
|
||||||
} else {
|
} else {
|
||||||
fail "New primary never detected the node failed"
|
fail "New primary never detected the node failed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user