diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-29 14:37:58 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-29 14:37:58 +0000 |
commit | 3824f7350251d4d10a794b6b9390333dbe567c57 (patch) | |
tree | afc7f78541a9d1d7fe50cc4acf80ec58c970f5b0 /plugins | |
parent | 6941b9f66b396342f4c5926a6c6b25911c382ffd (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/t/check_udp.t | 2 |
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: { | |||
48 | my $duration = time - $start; | 48 | my $duration = time - $start; |
49 | cmp_ok( $res->return_code, '==', '2', "Hung waiting for response"); | 49 | cmp_ok( $res->return_code, '==', '2', "Hung waiting for response"); |
50 | like ( $res->output, '/Socket timeout after 5 seconds/', "Timeout message"); | 50 | like ( $res->output, '/Socket timeout after 5 seconds/', "Timeout message"); |
51 | cmp_ok( $duration, '==', 5, "Timeout exactly right"); | 51 | like ( $duration, '/^[56]$/', "Timeout after 5 (possibly 6) seconds"); |
52 | my $read_nc = <NC>; | 52 | my $read_nc = <NC>; |
53 | close NC; | 53 | close NC; |
54 | cmp_ok( $read_nc, 'eq', "foofoo", "Data received correctly" ); | 54 | cmp_ok( $read_nc, 'eq', "foofoo", "Data received correctly" ); |