comparison http_resolver.t @ 544:e82bbe71f50c

Tests: removed TODOs for resolver fixes merged in 1.6.2.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 07 Apr 2015 16:45:14 +0300
parents 5ec2caad00e8
children a04b8b9537cd
comparison
equal deleted inserted replaced
543:a36757f66c75 544:e82bbe71f50c
226 like(http_host_header('cname_a_ttl2.example.net', '/'), qr/502 Bad/, 226 like(http_host_header('cname_a_ttl2.example.net', '/'), qr/502 Bad/,
227 'CNAME + A with expired CNAME ttl'); 227 'CNAME + A with expired CNAME ttl');
228 228
229 like(http_host_header('example.net', '/invalid'), qr/502 Bad/, 'no resolver'); 229 like(http_host_header('example.net', '/invalid'), qr/502 Bad/, 'no resolver');
230 230
231 TODO: {
232 local $TODO = 'not yet' unless $t->has_version('1.7.4');
233
234 like(http_end($s), qr/200 OK/, 'resend after malformed response'); 231 like(http_end($s), qr/200 OK/, 'resend after malformed response');
235
236 }
237 232
238 $s = http_get('/bad', start => 1); 233 $s = http_get('/bad', start => 1);
239 my $s2 = http_get('/bad', start => 1); 234 my $s2 = http_get('/bad', start => 1);
240 235
241 TODO: {
242 local $TODO = 'hangs' unless $t->has_version('1.7.5');
243
244 http_end($s); 236 http_end($s);
245 ok(http_end($s2), 'timeout handler on 2nd request'); 237 ok(http_end($s2), 'timeout handler on 2nd request');
246
247 }
248 238
249 ############################################################################### 239 ###############################################################################
250 240
251 sub http_host_header { 241 sub http_host_header {
252 my ($host, $uri, %extra) = @_; 242 my ($host, $uri, %extra) = @_;