From 160f67d68300cb5bc49f305c16c0d4da5d551821 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 10 Aug 2015 15:58:50 +0200 Subject: adapt tests to strict comparison --- tests/it_url_slow.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/it_url_slow.t') diff --git a/tests/it_url_slow.t b/tests/it_url_slow.t index 74440ce..aa85a80 100755 --- a/tests/it_url_slow.t +++ b/tests/it_url_slow.t @@ -21,7 +21,7 @@ $res = ok( 'it_url::get() fails after timeout seconds with no output', ); $res2 = is( - floor(microtime(true) - $start), 5, + intval(microtime(true) - $start), 5, '... and fails as soon as timeout is surpassed', ); sleep(1); # wait for testserver @@ -43,7 +43,7 @@ $res = ok( 'it_url::get() fails for response slower than totaltimeout', ); $res2 = is( - floor(microtime(true) - $start), 5, + intval(microtime(true) - $start), 5, '... and fails as soon as totaltimeout is surpassed' ); sleep(1); # wait for testserver -- cgit v1.2.3