1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

ctdb-tests/simple: User sleep_for() instead of sleep

Progress...

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Martin Schwenke 2013-11-15 15:23:14 +11:00 committed by Michael Adam
parent 2b6db9041d
commit c6551132f5

View File

@ -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`