summaryrefslogtreecommitdiff
path: root/tests/it_url.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it_url.t')
-rwxr-xr-xtests/it_url.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/it_url.t b/tests/it_url.t
index 9a4594e..eb36dd6 100755
--- a/tests/it_url.t
+++ b/tests/it_url.t
@@ -209,7 +209,7 @@ handle_server(
is(
it_url::get(['url' => 'http://localhost:8000/relative_redirect', 'it_error' => false]),
"Testserver output after relative redirect",
- 'TODO: it_url::get() follows relative redirect correctly'
+ 'it_url::get() follows relative redirect correctly'
)
);
@@ -217,7 +217,7 @@ handle_server(
is(
it_url::get('http://localhost:8000/nohost_redirect'),
"Testserver output after nohost redirect",
- 'TODO: it_url::get() follows redirect without host correctly'
+ 'it_url::get() follows redirect without host correctly'
)
);
@@ -231,13 +231,13 @@ handle_server(
$output = handle_server(
ok(
- !it_url::get(U('http://localhost:8000/redirect_loop', array('num' => 10))),
+ !it_url::get(array('url' => U('http://localhost:8000/redirect_loop', array('num' => 40)), 'it_error' => false)),
'it_url::get() handles redirect loop'
)
);
$last_num = it::match('num=(\d+)', end($output));
if (!ok(
- $last_num == 5,
+ $last_num == 20,
'it_url::get() aborts redirect loop after 5 redirects'
))
diag($output);