comparison http_resolver.t @ 1020:196d33c2bb45

Tests: removed TODO and try_run() checks for legacy versions. Also removed now unused spdy.t and shmem prerequisite.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 31 Aug 2016 18:21:07 +0300
parents 882267679006
children e4974af3fb12
comparison
equal deleted inserted replaced
1019:41139d6f8b7b 1020:196d33c2bb45
280 280
281 like(http_end($s2), qr/502 Bad/, 'timeout after aborted request'); 281 like(http_end($s2), qr/502 Bad/, 'timeout after aborted request');
282 282
283 # resend DNS query over TCP once UDP response came truncated 283 # resend DNS query over TCP once UDP response came truncated
284 284
285 TODO: {
286 local $TODO = 'not yet' unless $t->has_version('1.9.11');
287
288 unlike(http_host_header('tcp.example.net', '/tcp'), qr/127.0.0.201/, 'tc'); 285 unlike(http_host_header('tcp.example.net', '/tcp'), qr/127.0.0.201/, 'tc');
289 like(http_host_header('tcp.example.net', '/tcp'), qr/X-IP: 127.0.0.1/, 'tcp'); 286 like(http_host_header('tcp.example.net', '/tcp'), qr/X-IP: 127.0.0.1/, 'tcp');
290 like(http_host_header('tcp2.example.net', '/tcp2'), qr/X-IP: 127.0.0.1/, 287 like(http_host_header('tcp2.example.net', '/tcp2'), qr/X-IP: 127.0.0.1/,
291 'tcp with resend'); 288 'tcp with resend');
292
293 }
294 289
295 ############################################################################### 290 ###############################################################################
296 291
297 sub http_host_header { 292 sub http_host_header {
298 my ($host, $uri, %extra) = @_; 293 my ($host, $uri, %extra) = @_;