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
+++ b/h2_server_push.t
@@ -267,6 +267,9 @@ is(grep({ $_->{type} eq "PUSH_PROMISE" }
 $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 @@ push @$frames, @{ $s->read(all => [{ sid
 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 @@ is(join(' ', map { $_->{sid} } @data), "
 @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));