Mercurial > hg > nginx-tests
comparison fastcgi_body2.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 | 5a1f2e1ea6cd |
children | 6bb1f2ccd386 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
78 $t->waitforsocket('127.0.0.1:8081'); | 78 $t->waitforsocket('127.0.0.1:8081'); |
79 $t->waitforsocket('127.0.0.1:8082'); | 79 $t->waitforsocket('127.0.0.1:8082'); |
80 | 80 |
81 ############################################################################### | 81 ############################################################################### |
82 | 82 |
83 TODO: { | |
84 local $TODO = 'not yet' unless $t->has_version('1.7.6'); | |
85 | |
86 like(http_get_length('/', 'x' x 102400), qr/X-Length: 102400/, | 83 like(http_get_length('/', 'x' x 102400), qr/X-Length: 102400/, |
87 'body length - in file'); | 84 'body length - in file'); |
88 | 85 |
89 # force quick recovery, so that the next request wouldn't fail | 86 # force quick recovery, so that the next request wouldn't fail |
90 | 87 |
91 http_get('/'); | 88 http_get('/'); |
92 | 89 |
93 like(http_get_length('/in_memory', 'x' x 102400), qr/X-Length: 102400/, | 90 like(http_get_length('/in_memory', 'x' x 102400), qr/X-Length: 102400/, |
94 'body length - in memory'); | 91 'body length - in memory'); |
95 | |
96 } | |
97 | 92 |
98 ############################################################################### | 93 ############################################################################### |
99 | 94 |
100 sub http_get_length { | 95 sub http_get_length { |
101 my ($url, $body) = @_; | 96 my ($url, $body) = @_; |