Mercurial > hg > nginx-tests
comparison h2_auth_request.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | 9d6a0dbb889a |
children | 236d038dc04a |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
70 | 70 |
71 ############################################################################### | 71 ############################################################################### |
72 | 72 |
73 my ($s, $sid, $frames, $frame); | 73 my ($s, $sid, $frames, $frame); |
74 | 74 |
75 TODO: { | |
76 todo_skip 'use-after-free', 2 unless $ENV{TEST_NGINX_UNSAFE} | |
77 or $t->has_version('1.11.7'); | |
78 | |
79 # second stream is used to induce body corruption issue | 75 # second stream is used to induce body corruption issue |
80 | 76 |
81 $s = Test::Nginx::HTTP2->new(); | 77 $s = Test::Nginx::HTTP2->new(); |
82 $sid = $s->new_stream({ path => '/auth', method => 'POST', body => 'A' x 600 }); | 78 $sid = $s->new_stream({ path => '/auth', method => 'POST', body => 'A' x 600 }); |
83 $s->new_stream({ path => '/auth', method => 'POST', body => 'B' x 600 }); | 79 $s->new_stream({ path => '/auth', method => 'POST', body => 'B' x 600 }); |
85 | 81 |
86 ($frame) = grep { $_->{type} eq "HEADERS" && $_->{sid} == $sid } @$frames; | 82 ($frame) = grep { $_->{type} eq "HEADERS" && $_->{sid} == $sid } @$frames; |
87 is($frame->{headers}->{'x-body'}, 'A' x 600, 'auth request body'); | 83 is($frame->{headers}->{'x-body'}, 'A' x 600, 'auth request body'); |
88 isnt($frame->{headers}->{'x-body-file'}, undef, 'auth request body file'); | 84 isnt($frame->{headers}->{'x-body-file'}, undef, 'auth request body file'); |
89 | 85 |
90 } | |
91 | |
92 ############################################################################### | 86 ############################################################################### |