From c3b0dae7faab92af28c12b6dcd206fdc526ad554 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 23 Jan 2008 11:08:00 +0000 Subject: [PATCH] test.sh: sleep after launching nc, fix syntax --- test/test.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test.sh b/test/test.sh index d6ac7ed..b7a6f68 100755 --- a/test/test.sh +++ b/test/test.sh @@ -178,14 +178,16 @@ 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 & + sleep 2 admin "set query_timeout=3" admin "set server_connect_timeout=2" psql -c "select now()" p2 # client will always see query_timeout, need to grep for connect timeout grep "closing because: connect timeout" $BOUNCER_LOG - rc=$? - # didnt seem to die otherwise + rc=$? + # didnt seem to die otherwise killall nc return $rc } @@ -408,3 +410,4 @@ done complete +# vim: sts=0 sw=8 noet nosmarttab: -- 2.40.0