[nagiosplug] check_ping: increase test timeout
"Nagios Plugin Development" <[email protected]> Sat, 14 Sep 2013 22:00:52 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: c900ee2772b223c3ae8c29f752b8c1a6a8c10f92 Author: Sven Nierlein <[email protected]> Date: Sat Sep 14 21:06:26 2013 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=c900ee2 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. --- plugins/t/check_ping.t | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/t/check_ping.t b/plugins/t/check_ping.t index e1c119e..1604f8f 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 $res = NPTest->testCmd( - "./check_ping $host_nonresponsive -p 1 -t 1 100 100 1000 10000" + "./check_ping $host_nonresponsive -p 1 -t 15 100 100 1000 10000" ); is( $res->return_code, 2, "Old syntax: Timeout - host nonresponsive" ); like( $res->output, '/100%/', "Error contains '100%' string (for 100% packet loss)" ); ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk