aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/pfkey
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-11-05 14:57:07 +0100
committerTobias Brunner <tobias@strongswan.org>2015-11-09 15:18:35 +0100
commitcbaafa03c7ed75df3887788fc69fa4ed2d3abb9c (patch)
treefe12efd00f31d81b3384136d3b32b2d7b3cb4182 /testing/tests/pfkey
parentf519acd42f9efe7e566b918495418b2772a82c2a (diff)
downloadstrongswan-cbaafa03c7ed75df3887788fc69fa4ed2d3abb9c.tar.bz2
strongswan-cbaafa03c7ed75df3887788fc69fa4ed2d3abb9c.tar.xz
testing: Avoid delays with ping by using -W and -i options
With -W we reduce timeouts when we don't expect a response. With -i the interval between pings is reduced (mostly in case of auto=route where the first ping yields no reply).
Diffstat (limited to 'testing/tests/pfkey')
-rw-r--r--testing/tests/pfkey/net2net-route/pretest.dat2
-rw-r--r--testing/tests/pfkey/protoport-route/pretest.dat2
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/pfkey/net2net-route/pretest.dat b/testing/tests/pfkey/net2net-route/pretest.dat
index fadfeab73..a1c567079 100644
--- a/testing/tests/pfkey/net2net-route/pretest.dat
+++ b/testing/tests/pfkey/net2net-route/pretest.dat
@@ -3,4 +3,4 @@ sun::iptables-restore < /etc/iptables.rules
moon::ipsec start
sun::ipsec start
moon::expect-connection net-net
-alice::ping -c 10 PH_IP_BOB
+alice::ping -c 3 -W 1 -i 0.2 PH_IP_BOB
diff --git a/testing/tests/pfkey/protoport-route/pretest.dat b/testing/tests/pfkey/protoport-route/pretest.dat
index d242f06a8..b1bf23870 100644
--- a/testing/tests/pfkey/protoport-route/pretest.dat
+++ b/testing/tests/pfkey/protoport-route/pretest.dat
@@ -5,4 +5,4 @@ carol::ipsec start
carol::expect-connection home-icmp
carol::expect-connection home-ssh
carol::ssh PH_IP_ALICE hostname
-carol::ping -c 1 PH_IP_ALICE > /dev/null
+carol::ping -c 1 -W 1 PH_IP_ALICE > /dev/null