summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-07-16 21:48:56 -0400
committerJameson Graef Rollins <jrollins@finestructure.net>2009-07-16 21:48:56 -0400
commit21a38eae25ffc1e9f836e60d8254cf5e960553c5 (patch)
tree92ddac2fa822b1151ddedc68d81e6fc7dbe77d38 /tests
parent8af517bd1dc3eea66a64387af3e69188a536b2ee (diff)
add a 'wait' in the test ssh_test function to try to get around the race condition problem
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/basic b/tests/basic
index 8b4a1ca..83bf753 100755
--- a/tests/basic
+++ b/tests/basic
@@ -66,7 +66,7 @@ ssh_test() {
# wait until the socket is created before continuing
while [ ! -S "$SOCKET" ] ; do
- sleep 2
+ sleep 1
done
# make a client connection to the socket
@@ -77,6 +77,7 @@ ssh_test() {
# kill the sshd process if it's still running
kill "$SSHD_PID" || true
+ wait
SSHD_PID=
if [ "$RETURN" = "$CODE" ] ; then