From: Simon Ruderich Date: Wed, 31 Jul 2013 16:19:40 +0000 (+0200) Subject: tests: Wait at most 20 seconds in wait_for_ports(). X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=5d7fb12f931f04e29100e690ba06486f5d3be0b7 tests: Wait at most 20 seconds in wait_for_ports(). Prevents endless loop if the server failed to start. --- 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.