From d2ef55e48f160f44a64188dddeade2d2b6d32ee3 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 16 Oct 2012 09:09:30 +0000 Subject: add test for large response --- tests/it_url_slow.t | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/it_url_slow.t') diff --git a/tests/it_url_slow.t b/tests/it_url_slow.t index 9474ef8..215528d 100755 --- a/tests/it_url_slow.t +++ b/tests/it_url_slow.t @@ -63,5 +63,13 @@ $output = server_output(); if (!$res || !$res2) diag($output); +$res = ok( + it_url::get(U('http://localhost:8000/repeat', 'string' => "abc", 'num' => 1024 * 1024)) == str_repeat("abc", 1024 * 1024), + 'it_url::get() handles large response', +); +$output = server_output(); +if (!$res) + diag($output); + proc_terminate($server); -- cgit v1.2.3