Skip to content

Commit

Permalink
workflow: wait a lot for tcpdump to start
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHabets committed Jun 13, 2024
1 parent 3a868f3 commit dec639c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/run
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ run_test() {
&
PID=$!

# wait for tcpdump to wake up.
sleep 10

# Run arping.
set +e
# TODO: test that errors go to stderr.
Expand All @@ -80,9 +83,9 @@ run_test() {
exit 1
fi

sleep 0.05
sleep 10
kill -INT "${PID?}"
sleep 0.1
sleep 10
kill -9 "${PID?}" || true
wait "${PID?}" || true

Expand Down

0 comments on commit dec639c

Please sign in to comment.