aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-29 14:37:58 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-29 14:37:58 +0000
commit3824f7350251d4d10a794b6b9390333dbe567c57 (patch)
treeafc7f78541a9d1d7fe50cc4acf80ec58c970f5b0
parent6941b9f66b396342f4c5926a6c6b25911c382ffd (diff)
downloadmonitoring-plugins-3824f7350251d4d10a794b6b9390333dbe567c57.tar.gz
Allow 1 second delay in check_udp timeout
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1363 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/t/check_udp.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_udp.t b/plugins/t/check_udp.t
index ac1a893c..c22aeaf4 100644
--- a/plugins/t/check_udp.t
+++ b/plugins/t/check_udp.t
@@ -48,7 +48,7 @@ SKIP: {
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" );