[Nagiosplug-checkins] nagiosplug/plugins/t check_udp.t,1.4,1.5
Ton Voon
tonvoon at users.sourceforge.net
Wed Mar 29 06:39:04 CEST 2006
Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12252/t
Modified Files:
check_udp.t
Log Message:
Allow 1 second delay in check_udp timeout
Index: check_udp.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_udp.t,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- check_udp.t 27 Mar 2006 08:39:28 -0000 1.4
+++ check_udp.t 29 Mar 2006 14:37:58 -0000 1.5
@@ -48,7 +48,7 @@
my $duration = time - $start;
cmp_ok( $res->return_code, '==', '2', "Hung waiting for response");
like ( $res->output, '/Socket timeout after 5 seconds/', "Timeout message");
- cmp_ok( $duration, '==', 5, "Timeout exactly right");
+ like ( $duration, '/^[56]$/', "Timeout after 5 (possibly 6) seconds");
my $read_nc = <NC>;
close NC;
cmp_ok( $read_nc, 'eq', "foofoo", "Data received correctly" );
More information about the Commits
mailing list