diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-19 20:15:15 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-19 20:15:15 -0700 |
commit | 6048147422f99f654b8a400575c58d39351c4699 (patch) | |
tree | 3f2bd9179ebcfedd404e91a26d2d9d546f127a8d | |
parent | d266f4da075b4b972ee97589ac58ce1d08022f84 (diff) | |
download | rainbows-6048147422f99f654b8a400575c58d39351c4699.tar.gz |
On busy sytems, this timing-sensitive test is likely to fail, so give it some extra slack
-rwxr-xr-x | t/t0007-worker-follows-master-to-death.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t0007-worker-follows-master-to-death.sh b/t/t0007-worker-follows-master-to-death.sh index ac40277..8153ae4 100755 --- a/t/t0007-worker-follows-master-to-death.sh +++ b/t/t0007-worker-follows-master-to-death.sh @@ -32,7 +32,12 @@ t_begin "nuke the master once we're connected" && { } t_begin "worker is no longer running" && { - sleep 6 + nr=30 + while kill -0 $worker_pid 2>/dev/null && test $nr -gt 0 + do + nr=$(( $nr - 1)) + sleep 1 + done kill -0 $worker_pid 2> $tmp && false test -s $tmp } |