summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6941b9f)
raw | patch | inline | side by side (parent: 6941b9f)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 29 Mar 2006 14:37:58 +0000 (14:37 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 29 Mar 2006 14:37:58 +0000 (14:37 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1363 f882894a-f735-0410-b71e-b25c423dba1c
plugins/t/check_udp.t | patch | blob | history |
diff --git a/plugins/t/check_udp.t b/plugins/t/check_udp.t
index ac1a893c3e5d97c1febba3f8e5a6d257f578096a..c22aeaf4bbae6d3b81004e3106e9690056a09fde 100644 (file)
--- a/plugins/t/check_udp.t
+++ b/plugins/t/check_udp.t
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" );