Skip to content

Commit

Permalink
test: capture more packets when test
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed May 5, 2024
1 parent bd9cc0d commit be59720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testdata/test_pid_filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RNAME="${FILE_PREFIX}_filter_by_pid.read.txt"


function test_ptcpdump() {
timeout 30s ${CMD} -c 4 --pid $$ -f -i any --print -w "${FNAME}" | tee "${LNAME}" &
timeout 30s ${CMD} -c 6 --pid $$ -f -i any --print -w "${FNAME}" | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
wait
Expand Down
2 changes: 1 addition & 1 deletion testdata/test_pname_filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RNAME="${FILE_PREFIX}_filter_by_pname.read.txt"


function test_ptcpdump() {
timeout 30s ${CMD} -c 4 --pname curl -f -i any --print -w "${FNAME}" | tee "${LNAME}" &
timeout 30s ${CMD} -c 6 --pname curl -f -i any --print -w "${FNAME}" | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
wait
Expand Down

0 comments on commit be59720

Please sign in to comment.