summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-11-20 16:20:43 +0100
committerUrban Müller2023-11-20 16:20:43 +0100
commita059593f4301d8a28b1e019908bfd46530ff0747 (patch)
tree5f695a1308b52de99dab0d5807f75be8fd7a3385
parent10babebb7f589d598e5b6daa4f3dc5979b239a62 (diff)
downloaditools-a059593f4301d8a28b1e019908bfd46530ff0747.tar.gz
itools-a059593f4301d8a28b1e019908bfd46530ff0747.tar.bz2
itools-a059593f4301d8a28b1e019908bfd46530ff0747.zip
better failed test output
-rwxr-xr-xtest/it_url_slow.t7
1 files changed, 4 insertions, 3 deletions
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;