summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/it_url_slow.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/it_url_slow.t b/test/it_url_slow.t
index 32f0963..04377c5 100755
--- a/test/it_url_slow.t
+++ b/test/it_url_slow.t
@@ -57,3 +57,8 @@ handle_server(
'it_url::get() handles large response'
)
);
+
+$start = microtime(true);
+it_url::get_multi(array('urls' => array('slow' => 'http://localhost:8000/long_sleep', 'fast' => array('url' => 'http://search.ch/', 'handler' => function () {return true;}))));
+ok(intval(microtime(true) - $start) < 4, 'get_multi with handler aborts after fast request');
+$output = server_output();