tests/simple: User sleep_for() instead of sleep
authorMartin Schwenke <martin@meltin.net>
Fri, 15 Nov 2013 04:23:14 +0000 (15:23 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 19 Nov 2013 05:47:52 +0000 (16:47 +1100)
Progress...

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/simple/73_tunable_NoIPTakeover.sh

index 2e90f5539402066b7e8f1ec8f512c877bd6f8f8d..43fd8b267c57ee801d8f32a5f8ad5a50b2ec9ff1 100755 (executable)
@@ -44,7 +44,7 @@ fi
 
 
 echo "Wait until the ips are reallocated"
-sleep 30
+sleep_for 30
 try_command_on_node 0 "$CTDB ipreallocate"
 
 num=`try_command_on_node -v 1 "$CTDB ip" | grep -v Public | egrep " 1$" | wc -l`
@@ -68,7 +68,7 @@ echo "Number of addresses on node 1 : $num"
 
 echo "Enable node 1 again"
 try_command_on_node 1 "$CTDB enable"
-sleep 30
+sleep_for 30
 try_command_on_node 1 "$CTDB ipreallocate"
 try_command_on_node 1 "$CTDB ipreallocate"
 num=`try_command_on_node -v 1 "$CTDB ip" | grep -v Public | egrep " 1$" | wc -l`