[sheepdog] [PATCH] test: fix 003 for local driver

Liu Yuan namei.unix at gmail.com
Wed Aug 29 05:41:17 CEST 2012


From: Liu Yuan <tailai.ly at 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.ly at 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




More information about the sheepdog mailing list