From eb0b56d71731d2dbcfe4022b202677b9173ef81d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Nov 2009 23:59:04 -0800 Subject: t0004: tighten up timeout test We've worked around trigger happy timeouts in the master since we track the timeout at a lower resolution here. --- t/t0004-heartbeat-timeout.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t0004-heartbeat-timeout.sh b/t/t0004-heartbeat-timeout.sh index 64ad207..578f619 100755 --- a/t/t0004-heartbeat-timeout.sh +++ b/t/t0004-heartbeat-timeout.sh @@ -31,8 +31,8 @@ t_begin "block the worker process to force it to die" && { test x"$err" != x"$worker_pid" } -t_begin "ensure timeout took 2-6 seconds" && { - test $elapsed -ge 2 +t_begin "ensure timeout took 3-6 seconds" && { + test $elapsed -ge 3 test $elapsed -le 6 # give it some slack in case box is bogged down } -- cgit v1.2.3-24-ge0c7