From 3824f7350251d4d10a794b6b9390333dbe567c57 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 29 Mar 2006 14:37:58 +0000 Subject: 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 diff --git a/plugins/t/check_udp.t b/plugins/t/check_udp.t index ac1a893..c22aeaf 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 = ; close NC; cmp_ok( $read_nc, 'eq', "foofoo", "Data received correctly" ); -- cgit v0.10-9-g596f