comparison fastcgi_request_buffering.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
26 26
27 eval { require FCGI; }; 27 eval { require FCGI; };
28 plan(skip_all => 'FCGI not installed') if $@; 28 plan(skip_all => 'FCGI not installed') if $@;
29 plan(skip_all => 'win32') if $^O eq 'MSWin32'; 29 plan(skip_all => 'win32') if $^O eq 'MSWin32';
30 30
31 my $t = Test::Nginx->new()->has(qw/http fastcgi rewrite/); 31 my $t = Test::Nginx->new()->has(qw/http fastcgi rewrite/)->plan(15);
32 32
33 $t->write_file_expand('nginx.conf', <<'EOF'); 33 $t->write_file_expand('nginx.conf', <<'EOF');
34 34
35 %%TEST_GLOBALS%% 35 %%TEST_GLOBALS%%
36 36
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(15); 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