From 3dabbbd5325c9fad9582cd44b1da68dece78eaa0 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 21 Jun 2018 16:42:32 +0200 Subject: no reason for different naming --- tests/it_url_slow.t | 60 ----------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100755 tests/it_url_slow.t (limited to 'tests/it_url_slow.t') diff --git a/tests/it_url_slow.t b/tests/it_url_slow.t deleted file mode 100755 index bcc0db3..0000000 --- a/tests/it_url_slow.t +++ /dev/null @@ -1,60 +0,0 @@ -#!/www/server/bin/php -qC - 'http://localhost:8000/long_sleep', 'timeout' => 5, 'retries' => 0, 'it_error' => false)), - 'it_url::get() fails after timeout seconds with no output' -); -$res2 = is( - intval(microtime(true) - $start), 5, - '... and fails as soon as timeout is surpassed' -); -sleep(1); # wait for testserver -$output = server_output(); -if (!$res || !$res2) - diag($output); - -handle_server( - is( - it_url::get('http://localhost:8000/slow_response'), - join('', it::map('"Testserver slow output $v\n"', range(0, 5))), - 'it_url::get() waits for slow response with continuous output' - ) -); - -$start = microtime(true); -$res = ok( - !it_url::get(array('url' => 'http://localhost:8000/slow_response', 'totaltimeout' => 5, 'retries' => 0, 'it_error' => false)), - 'it_url::get() fails for response slower than totaltimeout' -); -$res2 = is( - intval(microtime(true) - $start), 5, - '... and fails as soon as totaltimeout is surpassed' -); -sleep(1); # wait for testserver -$output = server_output(); -if (!$res || !$res2) - diag($output); - -handle_server( - ok( - it_url::get(U('http://localhost:8000/repeat', array('string' => "abc", 'num' => 1024 * 1024))) == str_repeat("abc", 1024 * 1024), - 'it_url::get() handles large response' - ) -); - -- cgit v1.2.3