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	Mon Feb 09 16:33:13 2015 +0300
+++ b/t/buffering.t	Mon Feb 09 19:57:51 2015 +0300
@@ -19,7 +19,7 @@
 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 @@
 EOF
 
 $t->write_file('index.html', 'SEE-THIS');
-$t->run();
+$t->try_run('no catch_body')->plan(1);
 
 ###############################################################################
 
--- a/t/catch_body.t	Mon Feb 09 16:33:13 2015 +0300
+++ b/t/catch_body.t	Mon Feb 09 19:57:51 2015 +0300
@@ -19,7 +19,7 @@
 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 @@
 EOF
 
 $t->write_file('index.html', 'SEE-THIS');
-$t->run();
+$t->try_run('no catch_body')->plan(6);
 
 ###############################################################################