Skip to content

Commit

Permalink
Add tcpdump back only for the chat test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Feb 20, 2024
1 parent dc77b9a commit dce677e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@ jobs:
./integration_test/run.sh server/connect.rb
- name: '[SERVER] Test chat'
run: |
./integration_test/run.sh server/chat.rb
sudo tcpdump -i lo "port 8377" -w dump.pcap &
tcpdump_pid=$!
fail=0
if ! ./integration_test/run.sh server/chat.rb
then
fail=1
fi
kill $tcpdump_pid
sleep 1
tcpdump -r dump.pcap -nX || true
[[ "$fail" == "1" ]] && exit 1

0 comments on commit dce677e

Please sign in to comment.