-
-
Save anonymous/ca074ea5d4fa5896147c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/t/mojo/user_agent.t b/t/mojo/user_agent.t | |
index 0e215fa..de5e604 100644 | |
--- a/t/mojo/user_agent.t | |
+++ b/t/mojo/user_agent.t | |
@@ -362,7 +362,15 @@ ok $tx->res->is_limit_exceeded, 'limit is exceeded'; | |
# 404 response | |
$tx = $ua->get('/does_not_exist'); | |
+ok !$tx->success, 'not successful'; | |
+ok !$tx->kept_alive, 'kept connection not alive'; | |
+ok $tx->keep_alive, 'keep connection alive'; | |
+is $tx->error->{message}, 'Not Found', 'right error'; | |
+is $tx->error->{code}, 404, 'right status'; | |
+$tx = $ua->get('/does_not_exist'); | |
ok !$tx->success, 'not successful'; | |
+ok $tx->kept_alive, 'kept connection alive'; | |
+ok $tx->keep_alive, 'keep connection alive'; | |
is $tx->error->{message}, 'Not Found', 'right error'; | |
is $tx->error->{code}, 404, 'right status'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment