comparison h2.t @ 997:3c5d3b384d3f

Tests: adjusted TODOs for HTTP/2 fixes committed in 1.11.3.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 26 Jul 2016 21:00:41 +0300
parents 35739834ecd9
children 3b1ee8acc4db
comparison
equal deleted inserted replaced
996:ec9b99d3e22e 997:3c5d3b384d3f
27 27
28 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite/)->plan(138); 28 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite/)->plan(138);
29 29
30 # Some systems return EINVAL on zero writev iovcnt per POSIX, while others not 30 # Some systems return EINVAL on zero writev iovcnt per POSIX, while others not
31 31
32 $t->todo_alerts() if $^O eq 'darwin' or $^O eq 'netbsd'; 32 $t->todo_alerts() if ($^O eq 'darwin' or $^O eq 'netbsd')
33 and !$t->has_version('1.11.3');
33 34
34 $t->write_file_expand('nginx.conf', <<'EOF'); 35 $t->write_file_expand('nginx.conf', <<'EOF');
35 36
36 %%TEST_GLOBALS%% 37 %%TEST_GLOBALS%%
37 38
813 814
814 SKIP: { 815 SKIP: {
815 skip 'tolerant operating system', 1 unless $^O eq 'darwin' or $^O eq 'netbsd'; 816 skip 'tolerant operating system', 1 unless $^O eq 'darwin' or $^O eq 'netbsd';
816 817
817 TODO: { 818 TODO: {
818 local $TODO = 'not yet'; 819 local $TODO = 'not yet' unless $t->has_version('1.11.3');
819 820
820 $sid = $s->new_stream(); 821 $sid = $s->new_stream();
821 $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); 822 $frames = $s->read(all => [{ sid => $sid, fin => 1 }]);
822 823
823 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; 824 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
1106 $frames = $s->read(all => [{ type => 'GOAWAY' }]); 1107 $frames = $s->read(all => [{ type => 'GOAWAY' }]);
1107 ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames; 1108 ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames;
1108 ok($frame, 'GOAWAY on connection close - idle stream'); 1109 ok($frame, 'GOAWAY on connection close - idle stream');
1109 1110
1110 TODO: { 1111 TODO: {
1111 local $TODO = 'not yet'; 1112 local $TODO = 'not yet' unless $t->has_version('1.11.3');
1112 1113
1113 $frames = $active->read(all => [{ type => 'GOAWAY' }]); 1114 $frames = $active->read(all => [{ type => 'GOAWAY' }]);
1114 ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames; 1115 ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames;
1115 ok($frame, 'GOAWAY on connection close - active stream'); 1116 ok($frame, 'GOAWAY on connection close - active stream');
1116 1117