test-bad-pull: try to avoid timing-related failures
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 07 Apr 2007 04:27:55 -0300
changeset 4317 66249be9aa23
parent 4316 6e4334be0aaa
child 4318 b95a42114616
test-bad-pull: try to avoid timing-related failures
tests/test-bad-pull
--- a/tests/test-bad-pull	Sat Apr 07 04:27:55 2007 -0300
+++ b/tests/test-bad-pull	Sat Apr 07 04:27:55 2007 -0300
@@ -20,6 +20,9 @@
 python dumb.py 2>/dev/null &
 echo $! >> $DAEMON_PIDS
 
+# give the server some time to start running
+sleep 1
+
 http_proxy= hg clone http://localhost:20059/foo copy2 2>&1 | \
     sed -e 's/404.*/404/' -e 's/Date:.*/Date:/'
 echo $?