Skip to content

Commit

Permalink
Test force ipv4 on some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Mar 29, 2024
1 parent 5ccc6aa commit 7273e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
container_id=$(docker run -d -p 5901:5901 test vncserver -xstartup /opt/install/jupyter_remote_desktop_proxy/share/xstartup -verbose -fg -geometry 1680x1050 -SecurityTypes None -rfbport 5901)
sleep 1
timeout --preserve-status 1 nc -v localhost 5901 2>&1 | \
timeout --preserve-status 1 nc -v 127.0.0.1 5901 2>&1 | \
grep --quiet RFB && echo "Passed test" || { echo "Failed test" && TEST_OK=false; }
echo "::group::vncserver logs"
Expand All @@ -80,7 +80,7 @@ jobs:
container_id=$(docker run -d -p 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)
sleep 1
websocat --binary --one-message --exit-on-eof "ws://localhost:5901/" 2>&1 | \
websocat --binary --one-message --exit-on-eof "ws://127.0.0.1:5901/" 2>&1 | \
grep --quiet RFB && echo "Passed test" || { echo "Failed test" && TEST_OK=false; }
echo "::group::websockify logs"
Expand Down
2 changes: 1 addition & 1 deletion dummy-tcp-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
n = 0
while True:
time.sleep(0.2)
n = n+1
n = n + 1
conn.sendall(f"RFB broadcast {n}\n".encode())
except:
pass

0 comments on commit 7273e56

Please sign in to comment.