changeset 20653:3bfac190c7cd

tests: match time by a glob to fix intermittent failures of test-lock-badness.t Sometimes the lock was a bit slower and took 2 seconds. Do not fail the test by this. The glob ? matches from 0 to 9 seconds, which should be enough safety.
author Simon Heimberg <simohe@besonet.ch>
date Wed, 05 Mar 2014 14:03:08 +0100
parents 2a4871c2511d
children af9d9b778550
files tests/test-lock-badness.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-lock-badness.t	Wed Mar 05 10:49:43 2014 -0800
+++ b/tests/test-lock-badness.t	Wed Mar 05 14:03:08 2014 +0100
@@ -22,7 +22,7 @@
   $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout &
   $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf"
   waiting for lock on working directory of b held by '*:*' (glob)
-  got lock after 1 seconds
+  got lock after ? seconds (glob)
   warning: ignoring unknown working parent d2ae7f538514!
   $ wait
   $ cat stdout