From 9bdc1d6060e05a3c59de07428800b62b66539555 Mon Sep 17 00:00:00 2001 From: rht Date: Wed, 3 Jun 2015 16:49:03 +0700 Subject: [PATCH] Test repeat in 10 sec: increase check frequency tenfold --- test/sharness/lib/test-lib.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sharness/lib/test-lib.sh b/test/sharness/lib/test-lib.sh index afd4f6121a2..234477172db 100644 --- a/test/sharness/lib/test-lib.sh +++ b/test/sharness/lib/test-lib.sh @@ -52,10 +52,10 @@ fi . ../../ipfs-test-lib.sh test_cmp_repeat_10_sec() { - for i in 1 2 3 4 5 6 7 8 9 10 + for i in `seq 1 100` do test_cmp "$1" "$2" >/dev/null && return - sleep 1 + sleep 0.1 done test_cmp "$1" "$2" } @@ -245,9 +245,9 @@ test_launch_ipfs_daemon_and_mount() { test_kill_repeat_10_sec() { # try to shut down once + wait for graceful exit kill $1 - for i in 1 2 3 4 5 6 7 8 9 10 + for i in `seq 1 100` do - sleep 1 + sleep 0.1 ! kill -0 $1 2>/dev/null && return done