Commit 18297e2d authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #1326 from rht/master

Test repeat in 10 sec: increase check frequency tenfold
parents 7fbfecf6 9bdc1d60
...@@ -52,10 +52,10 @@ fi ...@@ -52,10 +52,10 @@ fi
. ../../ipfs-test-lib.sh . ../../ipfs-test-lib.sh
test_cmp_repeat_10_sec() { 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 do
test_cmp "$1" "$2" >/dev/null && return test_cmp "$1" "$2" >/dev/null && return
sleep 1 sleep 0.1
done done
test_cmp "$1" "$2" test_cmp "$1" "$2"
} }
...@@ -245,9 +245,9 @@ test_launch_ipfs_daemon_and_mount() { ...@@ -245,9 +245,9 @@ test_launch_ipfs_daemon_and_mount() {
test_kill_repeat_10_sec() { test_kill_repeat_10_sec() {
# try to shut down once + wait for graceful exit # try to shut down once + wait for graceful exit
kill $1 kill $1
for i in 1 2 3 4 5 6 7 8 9 10 for i in `seq 1 100`
do do
sleep 1 sleep 0.1
! kill -0 $1 2>/dev/null && return ! kill -0 $1 2>/dev/null && return
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment