diff options
author | Martin Schwenke <martin@meltin.net> | 2013-07-29 15:27:24 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-08-14 15:57:03 +1000 |
commit | d63cf0e7a7e7879a6794d2abdc03821be7f5c0d2 (patch) | |
tree | 801d72562af280038dc8e9e26736704e954d6dfe /ctdb/tests | |
parent | 0997b0c400917fa321ab5b5d13e95ddbe68ab0b9 (diff) | |
download | samba-d63cf0e7a7e7879a6794d2abdc03821be7f5c0d2.tar.gz samba-d63cf0e7a7e7879a6794d2abdc03821be7f5c0d2.tar.xz samba-d63cf0e7a7e7879a6794d2abdc03821be7f5c0d2.zip |
tests/simple: Unreachable node test should wait for recovery to complete
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>
(This used to be ctdb commit 63be516673c5d9c0d543617bf1bb8bca919956a8)
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-x | ctdb/tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh b/ctdb/tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh index 8b92c0ef504..6642b1759f9 100755 --- a/ctdb/tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh +++ b/ctdb/tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh @@ -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 |