Mercurial > hg > ngx_http_catch_body_filter_module
comparison t/buffering.t @ 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 |
comparison
equal
deleted
inserted
replaced
3:d7b8639a8857 | 4:01a36878bf36 |
---|---|
17 ############################################################################### | 17 ############################################################################### |
18 | 18 |
19 select STDERR; $| = 1; | 19 select STDERR; $| = 1; |
20 select STDOUT; $| = 1; | 20 select STDOUT; $| = 1; |
21 | 21 |
22 my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)->plan(1) | 22 my $t = Test::Nginx->new()->has(qw/http proxy rewrite/) |
23 ->write_file_expand('nginx.conf', <<'EOF'); | 23 ->write_file_expand('nginx.conf', <<'EOF'); |
24 | 24 |
25 %%TEST_GLOBALS%% | 25 %%TEST_GLOBALS%% |
26 | 26 |
27 daemon off; | 27 daemon off; |
59 } | 59 } |
60 | 60 |
61 EOF | 61 EOF |
62 | 62 |
63 $t->write_file('index.html', 'SEE-THIS'); | 63 $t->write_file('index.html', 'SEE-THIS'); |
64 $t->run(); | 64 $t->try_run('no catch_body')->plan(1); |
65 | 65 |
66 ############################################################################### | 66 ############################################################################### |
67 | 67 |
68 # buffering switched off - expect immediate reject, | 68 # buffering switched off - expect immediate reject, |
69 # before we'll send second part of the body | 69 # before we'll send second part of the body |