aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-23 00:51:31 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-23 04:29:08 +0200
commit5a20d186a39b24c9cb61581bd2636c56fa72fc77 (patch)
tree16b087dc866a5dec4b16d7ce98f88091f5cb5422
parentnetns: use read built-in instead of ncat hack for dmesg (diff)
downloadwireguard-monolithic-historical-5a20d186a39b24c9cb61581bd2636c56fa72fc77.tar.xz
wireguard-monolithic-historical-5a20d186a39b24c9cb61581bd2636c56fa72fc77.zip
netns: use time-based test instead of quantity-based
-rwxr-xr-xsrc/tests/netns.sh8
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]}"