From: Marko Kreen Date: Tue, 11 Jan 2011 12:38:00 +0000 (+0200) Subject: test.sh: more portable nc usage X-Git-Tag: pgbouncer_1_4~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a429a6318786c9a3e9d19b5f8a9667509f2af59;p=pgbouncer test.sh: more portable nc usage --- diff --git a/test/test.sh b/test/test.sh index 242cd9d..eef8757 100755 --- a/test/test.sh +++ b/test/test.sh @@ -178,8 +178,8 @@ test_server_login_retry() { test_server_connect_timeout_establish() { which nc >/dev/null || return 1 - echo nc -l -p $NC_PORT - nc -l -p $NC_PORT >/dev/null & + echo nc -q 5 -l $NC_PORT + nc -l -q 5 $NC_PORT >/dev/null & sleep 2 admin "set query_timeout=3" admin "set server_connect_timeout=2"