summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
authorSven Nierlein <sven@consol.de>2013-09-14 21:06:26 +0200
committerSven Nierlein <sven@consol.de>2013-09-14 21:06:26 +0200
commitc900ee2772b223c3ae8c29f752b8c1a6a8c10f92 (patch)
tree49cd8c9957ed527e5230f183e909284d433dfe61 /plugins/t
parentc7d6730255aaf4d07db947e9f032bc0206bccbcb (diff)
downloadmonitoring-plugins-c900ee2772b223c3ae8c29f752b8c1a6a8c10f92.tar.gz
check_ping: increase test timeout
freebsds ping takes a few seconds till it returns, so a 1 second timeout does not work for the test.
Diffstat (limited to 'plugins/t')
-rw-r--r--plugins/t/check_ping.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_ping.t b/plugins/t/check_ping.t
index e1c119e4..1604f8fb 100644
--- a/plugins/t/check_ping.t
+++ b/plugins/t/check_ping.t
@@ -90,7 +90,7 @@ like( $res->output, '/100%/', "Error contains '100%' string (for 100% packet los
90 90
91 91
92$res = NPTest->testCmd( 92$res = NPTest->testCmd(
93 "./check_ping $host_nonresponsive -p 1 -t 1 100 100 1000 10000" 93 "./check_ping $host_nonresponsive -p 1 -t 15 100 100 1000 10000"
94 ); 94 );
95is( $res->return_code, 2, "Old syntax: Timeout - host nonresponsive" ); 95is( $res->return_code, 2, "Old syntax: Timeout - host nonresponsive" );
96like( $res->output, '/100%/', "Error contains '100%' string (for 100% packet loss)" ); 96like( $res->output, '/100%/', "Error contains '100%' string (for 100% packet loss)" );