summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/integration.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration.sh b/tests/integration.sh
index 5d13936..a0f3494 100755
--- a/tests/integration.sh
+++ b/tests/integration.sh
@@ -14,11 +14,14 @@ test_exits_when_upstream_errors() {
rm -f s1.socket
./binder.bin localhost:1234 s1.socket 1>"$OUT" 2>"$ERR" &
+ pid=$!
while ! lsof -s TCP:LISTEN -i :1234 > /dev/null; do
true
done
echo request | socat tcp-connect:localhost:1234 stdio > client.txt
+ kill $pid
+ wait
assert_fgrep_stdout 'listen-start'
assert_fgrep_stdout 'active-connections'
@@ -65,6 +68,5 @@ test_works_from_client_to_server() {
}
-exit # FIXME
test_exits_when_upstream_errors
test_works_from_client_to_server