[sheepdog] [PATCH 1/2] tests/008: remove hard-coded time assumption

Liu Yuan namei.unix at gmail.com
Wed Feb 6 10:43:41 CET 2013


From: Liu Yuan <tailai.ly at taobao.com>

This might spurious failure, so just remove it.

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 tests/008 |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/tests/008 b/tests/008
index cd2f2b6..1af5bcf 100755
--- a/tests/008
+++ b/tests/008
@@ -39,10 +39,15 @@ done
 sleep 3
 
 echo begin kill
-for i in `seq 1 5`; do
-    _kill_sheep $i
-    sleep 3
-done
+
+_kill_sheep 1
+_kill_sheep 2
+_wait_for_sheep_recovery 0
+_kill_sheep 3
+_kill_sheep 4
+_wait_for_sheep_recovery 0
+_kill_sheep 5
+_wait_for_sheep_recovery 0
 
 for i in `seq 1 5`; do
     _start_sheep $i
-- 
1.7.9.5




More information about the sheepdog mailing list