Mercurial > hg > nginx-tests
changeset 1280:8a88c0d6f80a
Tests: TODO HTTP/2 server push flow control tests with "aio on".
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 09 Feb 2018 10:11:14 +0300 |
parents | da2ad1d72bb6 |
children | 5bbade306a0d |
files | h2_server_push.t |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_server_push.t Thu Feb 08 21:52:23 2018 +0300 +++ b/h2_server_push.t Fri Feb 09 10:11:14 2018 +0300 @@ -267,6 +267,9 @@ $frames = $s->read(all => [{ type => 'PUSH_PROMISE' }], wait => 0.2); is(grep({ $_->{type} eq "PUSH_PROMISE" } @$frames), 0, 'max pushes disabled'); +TODO: { +local $TODO = 'not yet' if $t->read_file('nginx.conf') =~ /aio on/; + # server push flow control & rst $s = Test::Nginx::HTTP2->new(); @@ -303,9 +306,14 @@ is($frame->{length}, 1, 'pushed response flow control'); is($frame->{flags}, 1, 'pushed response END_STREAM'); +} + ($frame) = grep { $_->{type} eq "DATA" && $_->{sid} == 4 } @$frames; ok(!$frame, 'rst pushed stream'); +TODO: { +local $TODO = 'not yet' if $t->read_file('nginx.conf') =~ /aio on/; + # priority $s = Test::Nginx::HTTP2->new(); @@ -336,6 +344,8 @@ @data = grep { $_->{type} eq "DATA" } @$frames; is(join(' ', map { $_->{sid} } @data), "2 4", 'priority 2'); +} + # http2_max_concurrent_pushes $s = Test::Nginx::HTTP2->new(port(8082));