Skip to content

Commit

Permalink
nc and webcat to 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Mar 29, 2024
1 parent 1858da6 commit 47ed4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
container_id=$(docker run -d -it -p 127.0.0.1:5901:5901 test vncserver -xstartup /opt/install/jupyter_remote_desktop_proxy/share/xstartup -verbose -fg -geometry 1680x1050 -SecurityTypes None -rfbport 5901 ${{ matrix.vncserver_args }})
sleep 1
timeout --preserve-status 1 nc -v localhost 5901 2>&1 | tee -a /dev/stderr | \
timeout --preserve-status 1 nc -v 127.0.0.1 5901 2>&1 | tee -a /dev/stderr | \
grep --quiet RFB && echo "Passed test" || { echo "Failed test" && TEST_OK=false; }
echo "::group::vncserver logs"
Expand All @@ -81,7 +81,7 @@ jobs:
container_id=$(docker run -d -it -p 127.0.0.1:5901:5901 test websockify --verbose --log-file=/tmp/websockify.log --heartbeat=30 5901 -- vncserver -xstartup /opt/install/jupyter_remote_desktop_proxy/share/xstartup -verbose -fg -geometry 1680x1050 -SecurityTypes None -rfbport 5901 ${{ matrix.vncserver_args }})
sleep 1
websocat --binary --one-message --exit-on-eof "ws://localhost:5901/" 2>&1 | tee -a /dev/stderr | \
websocat --binary --one-message --exit-on-eof "ws://127.0.0.1:5901/" 2>&1 | tee -a /dev/stderr | \
grep --quiet RFB && echo "Passed test" || { echo "Failed test" && TEST_OK=false; }
echo "::group::websockify logs"
Expand Down

0 comments on commit 47ed4f7

Please sign in to comment.