From 5d7fb12f931f04e29100e690ba06486f5d3be0b7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 31 Jul 2013 18:19:40 +0200 Subject: [PATCH] tests: Wait at most 20 seconds in wait_for_ports(). Prevents endless loop if the server failed to start. --- tests/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.sh b/tests/common.sh index f141cb2..2d87108 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -68,7 +68,7 @@ client() { } wait_for_ports() { - while :; do + for x in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do sleep 1 # Check if each given port can be reached. -- 2.43.2