Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering_redirect.t @ 1504:03f8fb9f6492
Tests: fixed h2_proxy_request_buffering_redirect.t on old versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 09 Sep 2019 15:21:31 +0300 |
parents | 63a74974a0e9 |
children | 5ac6efbe5552 |
comparison
equal
deleted
inserted
replaced
1503:06fbbf1706bd | 1504:03f8fb9f6492 |
---|---|
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 | |
75 TODO: { | 79 TODO: { |
76 todo_skip 'leaves coredump', 1 unless $ENV{TEST_NGINX_UNSAFE} | 80 local $TODO = 'not yet' unless $t->has_version('1.17.4'); |
77 or $t->has_version('1.17.4'); | 81 |
82 $t->todo_alerts() unless $t->has_version('1.17.4'); | |
78 | 83 |
79 my $s = Test::Nginx::HTTP2->new(); | 84 my $s = Test::Nginx::HTTP2->new(); |
80 my $sid = $s->new_stream({ body_more => 1 }); | 85 my $sid = $s->new_stream({ body_more => 1 }); |
81 | 86 |
82 $s->h2_body('SEE-', { body_more => 1 }); | 87 $s->h2_body('SEE-', { body_more => 1 }); |
87 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 92 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
88 is($frame->{headers}->{':status'}, 200, 'discard body rest on redirect'); | 93 is($frame->{headers}->{':status'}, 200, 'discard body rest on redirect'); |
89 | 94 |
90 } | 95 } |
91 | 96 |
97 } | |
98 | |
92 ############################################################################### | 99 ############################################################################### |