diff options
| author | EuAndreh <eu@euandre.org> | 2024-08-08 19:00:15 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2024-08-08 19:00:15 -0300 |
| commit | 821d6861a8575f922f9e8bcd78ace083f12f75d6 (patch) | |
| tree | 1f26362ceb410cd72eb4b4dc844c5f90477d2a68 | |
| parent | src/binder.go: Stop exporting functions for testing (diff) | |
| download | binder-821d6861a8575f922f9e8bcd78ace083f12f75d6.tar.gz binder-821d6861a8575f922f9e8bcd78ace083f12f75d6.tar.xz | |
tests/integration.sh: Re-enable and fix test
| -rwxr-xr-x | tests/integration.sh | 4 |
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 |
