Skip to content

Commit 9b3944c

Browse files
author
clowwindy
committed
fix large file test
1 parent f1b084b commit 9b3944c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_large_file.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ URL=http://127.0.0.1/file
99

1010
mkdir -p tmp
1111

12-
type tc > /dev/null && (
12+
type tc 2> /dev/null && (
1313
tc qdisc add dev $DEV root handle 1: prio
1414
tc qdisc add dev $DEV parent 1:3 handle 30: netem delay $DELAY
1515
tc filter add dev $DEV parent 1:0 protocol ip u32 match ip dport $PORT 0xffff flowid 1:3
@@ -25,13 +25,13 @@ SERVER=$!
2525

2626
sleep 3
2727

28-
curl -o tmp/expected $URL
29-
curl -o tmp/result --socks5-hostname 127.0.0.1:1081 $URL
28+
time curl -o tmp/expected $URL
29+
time curl -o tmp/result --socks5-hostname 127.0.0.1:1081 $URL
3030

3131
kill $LOCAL
3232
kill $SERVER
3333

34-
type tc > /dev/null && tc qdisc del dev lo root
34+
type tc 2> /dev/null && tc qdisc del dev lo root
3535

3636
sleep 2
3737

0 commit comments

Comments
 (0)