diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-23 00:51:31 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 16:21:54 +0100 |
commit | ee6d7e7c068af71d0f78ddf64cb28a6b3a5e72f6 (patch) | |
tree | e84ddc98475e35d919f610db94fda181b5e96a01 /src | |
parent | c4974e7c3c948d692be397448698d0d3c0670704 (diff) |
netns: use time-based test instead of quantity-based
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/tests/netns.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh index 1aa741d..94666f3 100755 --- a/src/tests/netns.sh +++ b/src/tests/netns.sh @@ -117,22 +117,22 @@ tests() { # TCP over IPv4 n2 iperf3 -s -1 -B 192.168.241.2 & waitiperf $netns2 - n1 iperf3 -Z -n 1G -c 192.168.241.2 + n1 iperf3 -Z -t 3 -c 192.168.241.2 # TCP over IPv6 n1 iperf3 -s -1 -B fd00::1 & waitiperf $netns1 - n2 iperf3 -Z -n 1G -c fd00::1 + n2 iperf3 -Z -t 3 -c fd00::1 # UDP over IPv4 n1 iperf3 -s -1 -B 192.168.241.1 & waitiperf $netns1 - n2 iperf3 -Z -n 1G -b 0 -u -c 192.168.241.1 + n2 iperf3 -Z -t 3 -b 0 -u -c 192.168.241.1 # UDP over IPv6 n2 iperf3 -s -1 -B fd00::2 & waitiperf $netns2 - n1 iperf3 -Z -n 1G -b 0 -u -c fd00::2 + n1 iperf3 -Z -t 3 -b 0 -u -c fd00::2 } [[ $(ip1 link show dev wg0) =~ mtu\ ([0-9]+) ]] && orig_mtu="${BASH_REMATCH[1]}" |