diff options
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: { 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" ); |