From a4802320b1f8490f0c6a7341823f2458f347cb6e Mon Sep 17 00:00:00 2001 From: Alexander Zagniotov Date: Mon, 5 Feb 2024 12:53:49 -0800 Subject: [PATCH] Update make_request_for_sequenced_responses_using_websocat.sh --- ...st_for_sequenced_responses_using_websocat.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/smoke-test/shell/make_request_for_sequenced_responses_using_websocat.sh b/src/smoke-test/shell/make_request_for_sequenced_responses_using_websocat.sh index d496fc6d..46bb3574 100644 --- a/src/smoke-test/shell/make_request_for_sequenced_responses_using_websocat.sh +++ b/src/smoke-test/shell/make_request_for_sequenced_responses_using_websocat.sh @@ -31,7 +31,19 @@ fi websocat --text --exit-on-eof --protocol "zumba" -q -uU tcp-l:127.0.0.1:1234 reuse-raw:$1://$2:$3/ws/hello-world/2 --max-messages-rev 1& +echo "" +echo "#####################################################################" +echo "## WebSoCat is TCP listening on 127.0.0.1:1234" +echo "#####################################################################" + + smoke_test_sequenced_response=$(echo "Hello, World!" | nc 127.0.0.1 1234 2> /dev/null; echo $?) +echo "" +echo "#####################################################################" +echo "## Got $smoke_test_sequenced_response" +echo "#####################################################################" + + if [ "$smoke_test_sequenced_response" != "world-0" ] then echo "WebSocket request to $2:$3 failed, got: $smoke_test_sequenced_response ... Exiting with status 1 ... " @@ -41,6 +53,11 @@ else exit 0 fi +echo "" +echo "#####################################################################" +echo "## Got $smoke_test_sequenced_response" +echo "#####################################################################" + smoke_test_sequenced_response=$(echo "Hello, World!" | nc 127.0.0.1 1234 2> /dev/null; echo $?) if [ "$smoke_test_sequenced_response" != "world-1" ] then