# HG changeset patch # User Maxim Dounin # Date 1423501071 -10800 # Node ID 01a36878bf361f668373212cd2b7b8eb758c0d5c # Parent d7b8639a885721632b6fda657607a1bcb1c3a203 Tests now use try_run(). diff -r d7b8639a8857 -r 01a36878bf36 t/buffering.t --- 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); ############################################################################### diff -r d7b8639a8857 -r 01a36878bf36 t/catch_body.t --- 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); ###############################################################################