tests/simple: Unreachable node test should wait for recovery to complete
authorMartin Schwenke <martin@meltin.net>
Mon, 29 Jul 2013 05:27:24 +0000 (15:27 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 14 Aug 2013 05:57:03 +0000 (15:57 +1000)
This should minimise the chances of a control timing out.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh

index 8b92c0ef504353b847281800f2c05bfc67075fad..6642b1759f96532d86a7ae401b7e1ca676c89af0 100755 (executable)
@@ -54,6 +54,8 @@ try_command_on_node $test_node $CTDB shutdown
 
 wait_until_node_has_status $test_node disconnected 30 0
 
+wait_until_node_has_status 0 recovered 30 0
+
 pat="ctdb_control error: 'ctdb_control to disconnected node'|ctdb_control error: 'node is disconnected'|Node $test_node is DISCONNECTED|Node $test_node has status DISCONNECTED\|UNHEALTHY\|INACTIVE"
 
 for i in ip disable enable "ban 0" unban listvars ; do