diff options
-rwxr-xr-x | test/it_url_slow.t | 7 |
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; |