Mercurial > hg > nginx-tests
comparison fastcgi_request_buffering_chunked.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | dbf8fb0f3d30 |
children | 68a6678abae2 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
27 | 27 |
28 eval { require FCGI; }; | 28 eval { require FCGI; }; |
29 plan(skip_all => 'FCGI not installed') if $@; | 29 plan(skip_all => 'FCGI not installed') if $@; |
30 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | 30 plan(skip_all => 'win32') if $^O eq 'MSWin32'; |
31 | 31 |
32 my $t = Test::Nginx->new()->has(qw/http fastcgi rewrite/); | 32 my $t = Test::Nginx->new()->has(qw/http fastcgi rewrite/)->plan(19); |
33 | 33 |
34 $t->write_file_expand('nginx.conf', <<'EOF'); | 34 $t->write_file_expand('nginx.conf', <<'EOF'); |
35 | 35 |
36 %%TEST_GLOBALS%% | 36 %%TEST_GLOBALS%% |
37 | 37 |
74 } | 74 } |
75 | 75 |
76 EOF | 76 EOF |
77 | 77 |
78 $t->run_daemon(\&fastcgi_daemon); | 78 $t->run_daemon(\&fastcgi_daemon); |
79 $t->try_run('no fastcgi_request_buffering')->plan(19); | 79 $t->run()->waitforsocket('127.0.0.1:8081'); |
80 | |
81 $t->waitforsocket('127.0.0.1:8081'); | |
82 | 80 |
83 ############################################################################### | 81 ############################################################################### |
84 | 82 |
85 like(http_get('/'), qr/X-Body: \x0d\x0a?/ms, 'no body'); | 83 like(http_get('/'), qr/X-Body: \x0d\x0a?/ms, 'no body'); |
86 | 84 |