comparison h2_proxy_request_buffering_redirect.t @ 1693:5ac6efbe5552

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 01 Jun 2021 16:40:18 +0300
parents 03f8fb9f6492
children 236d038dc04a
comparison
equal deleted inserted replaced
1692:f6795e2e6a4b 1693:5ac6efbe5552
70 70
71 ############################################################################### 71 ###############################################################################
72 72
73 # unbuffered request body 73 # unbuffered request body
74 74
75 SKIP: {
76 skip 'leaves coredump', 1 unless $t->has_version('1.17.4')
77 or $ENV{TEST_NGINX_UNSAFE};
78
79 TODO: {
80 local $TODO = 'not yet' unless $t->has_version('1.17.4');
81
82 $t->todo_alerts() unless $t->has_version('1.17.4');
83
84 my $s = Test::Nginx::HTTP2->new(); 75 my $s = Test::Nginx::HTTP2->new();
85 my $sid = $s->new_stream({ body_more => 1 }); 76 my $sid = $s->new_stream({ body_more => 1 });
86 77
87 $s->h2_body('SEE-', { body_more => 1 }); 78 $s->h2_body('SEE-', { body_more => 1 });
88 sleep 1; 79 sleep 1;
90 81
91 my $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); 82 my $frames = $s->read(all => [{ sid => $sid, fin => 1 }]);
92 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; 83 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
93 is($frame->{headers}->{':status'}, 200, 'discard body rest on redirect'); 84 is($frame->{headers}->{':status'}, 200, 'discard body rest on redirect');
94 85
95 }
96
97 }
98
99 ############################################################################### 86 ###############################################################################