aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake McGinty <me@jake.su>2018-04-05 01:22:43 -0700
committerJake McGinty <me@jake.su>2018-04-05 01:25:11 -0700
commitc3f1c125a0f8d1c23da4925c415b4516c5e4b07f (patch)
treedc778b0301601a96565ff26af2b61b6818bff519
parentreaper: only listen for own UDS deletion. (diff)
downloadwireguard-rs-c3f1c125a0f8d1c23da4925c415b4516c5e4b07f.tar.xz
wireguard-rs-c3f1c125a0f8d1c23da4925c415b4516c5e4b07f.zip
tests: fix netns counter test
figured something changed and it's now wrong since wireguard-go also fails this counter tests.
-rwxr-xr-xtests/netns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/netns.sh b/tests/netns.sh
index 091f1fe..975188a 100755
--- a/tests/netns.sh
+++ b/tests/netns.sh
@@ -169,7 +169,7 @@ n2 ping -c 10 -f -W 1 192.168.241.1
{ read _; read _; read _; read rx_bytes _; read _; read tx_bytes _; } < <(ip2 -stats link show dev wg2)
ip2 -stats link show dev wg2
n0 wg show
-[[ $rx_bytes -ge 840 && $tx_bytes -ge 880 && $rx_bytes -lt 2500 && $rx_bytes -lt 2500 ]]
+[[ $rx_bytes -ge 840 && $tx_bytes -ge 840 && $rx_bytes -lt 2500 && $rx_bytes -lt 2500 ]]
echo "counters working"
tests
ip1 link set wg1 mtu $big_mtu