From: Liu Yuan <tailai...@taobao.com>

Local driver detect membership change by signal in 1 s internal, so kill &sleep 
1
might have no effect for local driver.

This might cause random spurious failure of test.

Signed-off-by: Liu Yuan <tailai...@taobao.com>
---
 tests/003 |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/003 b/tests/003
index 13f550f..b45e2ed 100755
--- a/tests/003
+++ b/tests/003
@@ -17,16 +17,17 @@ _cleanup
 
 for i in 0 1 2; do
     _start_sheep $i
-    sleep 1
 done
 
-# start Sheepdog with three nodes
+_wait_for_sheep 3
+
 $COLLIE cluster format
 
+sleep 1
 # kill all sheeps
 for i in 0 1 2; do
     _kill_sheep $i
-    sleep 1
+    sleep 3
 done
 
 # master transfer will happen twice
-- 
1.7.10.2

-- 
sheepdog mailing list
sheepdog@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to