diff h2_auth_request.t @ 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 83b7b3f8b6c5
children 766bcbb632ee
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');