From a059593f4301d8a28b1e019908bfd46530ff0747 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 20 Nov 2023 16:20:43 +0100 Subject: better failed test output --- test/it_url_slow.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/it_url_slow.t') diff --git a/test/it_url_slow.t b/test/it_url_slow.t index b131322..28b1bf9 100755 --- a/test/it_url_slow.t +++ b/test/it_url_slow.t @@ -11,13 +11,14 @@ handle_server( is( it_url::get('http://localhost:8000/short_sleep'), "Testserver output after short sleep", - 'it_url::get() waits for 4 seconds' + 'it_url::get() receives full output after short sleep' ) ); $start = microtime(true); -$res = ok( - !it_url::get(['url' => 'http://localhost:8000/long_sleep', 'timeout' => 4, 'retries' => 0, 'it_error' => false]), +$res = is( + it_url::get(['url' => 'http://localhost:8000/long_sleep', 'timeout' => 4, 'retries' => 0, 'it_error' => false]), + false, 'it_url::get() fails after timeout seconds with no output' ); $duration = microtime(true) - $start; -- cgit v1.2.3