From 821d6861a8575f922f9e8bcd78ace083f12f75d6 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 8 Aug 2024 19:00:15 -0300 Subject: tests/integration.sh: Re-enable and fix test --- tests/integration.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3