changeset 1090:9d6a0dbb889a

Tests: check headers for appropriate stream in h2_auth_request.t.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 07 Dec 2016 15:22:22 +0300
parents eedb96f717ff
children a5e428f4440d
files h2_auth_request.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h2_auth_request.t
+++ b/h2_auth_request.t
@@ -83,7 +83,7 @@ todo_skip 'use-after-free', 2 unless $EN
 $s->new_stream({ path => '/auth', method => 'POST', body => 'B' x 600 });
 $frames = $s->read(all => [{ sid => $sid, fin => 1 }]);
 
-($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
+($frame) = grep { $_->{type} eq "HEADERS" && $_->{sid} == $sid } @$frames;
 is($frame->{headers}->{'x-body'}, 'A' x 600, 'auth request body');
 isnt($frame->{headers}->{'x-body-file'}, undef, 'auth request body file');