Enhance 077.invalid_failover_node regression test.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 15 Mar 2022 08:29:23 +0000 (17:29 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 15 Mar 2022 08:29:23 +0000 (17:29 +0900)
It seems the timeout for pcp_promote_node was not long enough.
Increase it from 30 seconds to 60 seconds.

src/test/regression/tests/077.invalid_failover_node/test.sh

index 131747b72b1cfa2820254dd5e088d07d0fb0b268..79775c057662fe7cf81101e16f782eec799d553d 100755 (executable)
@@ -49,14 +49,15 @@ date
 # wait until node 1 up
 ok=ng
 u=2
-for i in {1..15}
+for i in {1..30}
 do
     $PCP_NODE_INFO -w -p $PCP_PORT 1|grep waiting
     if [ $? -eq 0 ];then
        ok=ok
        break;
     fi
-    echo `expr $u \* $i`
+    echo -n "`expr $u \* $i` "
+    date
     sleep $u
 done