Skip to content

Commit

Permalink
Merge pull request #1326 from rht/master
Browse files Browse the repository at this point in the history
Test repeat in 10 sec: increase check frequency tenfold
  • Loading branch information
jbenet committed Jun 3, 2015
2 parents 7fbfecf + 9bdc1d6 commit 18297e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 18297e2

Please sign in to comment.