Mercurial > hg > nginx-tests
changeset 1295:22a8982d5de6
Tests: subrequest_output_buffer_size.t adjusted.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 01 Mar 2018 20:11:53 +0300 |
parents | 192a44f590a9 |
children | 5d75938b2622 |
files | subrequest_output_buffer_size.t |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/subrequest_output_buffer_size.t Thu Mar 01 19:30:44 2018 +0300 +++ b/subrequest_output_buffer_size.t Thu Mar 01 20:11:53 2018 +0300 @@ -41,11 +41,11 @@ location / { proxy_pass http://127.0.0.1:8081; + subrequest_output_buffer_size 42; } location /longok { proxy_pass http://127.0.0.1:8081/long; - subrequest_output_buffer_size 42k; } location /ssi { @@ -68,7 +68,7 @@ 'set: <!--#echo var="x" -->'); $t->write_file('length', 'TEST-OK-IF-YOU-SEE-THIS'); -$t->write_file('long', 'x' x 40000); +$t->write_file('long', 'x' x 400); $t->write_file('empty', ''); $t->try_run('no subrequest_output_buffer_size')->plan(4); @@ -78,8 +78,8 @@ my ($r, $n); like(http_get('/ssi.html?c=length'), qr/SEE-THIS/, 'request'); -like(http_get('/ssi.html?c=empty'), qr/200 OK/, 'empty'); -unlike(http_get('/ssi.html?c=long'), qr/200 OK/, 'long default'); -like(http_get('/ssi.html?c=longok'), qr/200 OK/, 'long ok'); +like(http_get('/ssi.html?c=empty'), qr/set: $/, 'empty'); +unlike(http_get('/ssi.html?c=long'), qr/200 OK/, 'long'); +like(http_get('/ssi.html?c=longok'), qr/x{400}/, 'long ok'); ###############################################################################