changeset 4:01a36878bf36

Tests now use try_run().
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 09 Feb 2015 19:57:51 +0300
parents d7b8639a8857
children ae29daca3f0e
files t/buffering.t t/catch_body.t
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/t/buffering.t
+++ b/t/buffering.t
@@ -19,7 +19,7 @@ use Socket qw/ CRLF /;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)->plan(1)
+my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)
 	->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
@@ -61,7 +61,7 @@ http {
 EOF
 
 $t->write_file('index.html', 'SEE-THIS');
-$t->run();
+$t->try_run('no catch_body')->plan(1);
 
 ###############################################################################
 
--- a/t/catch_body.t
+++ b/t/catch_body.t
@@ -19,7 +19,7 @@ use Socket qw/ CRLF /;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)->plan(6)
+my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)
 	->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
@@ -48,7 +48,7 @@ http {
 EOF
 
 $t->write_file('index.html', 'SEE-THIS');
-$t->run();
+$t->try_run('no catch_body')->plan(6);
 
 ###############################################################################