Skip to content

Commit 8c15d8b

Browse files
committed
Tests: skip "no headers" test in h2_proxy_cache.t on win32.
Small limit rate doesn't work on this platform which breaks test preconditions.
1 parent b4832b6 commit 8c15d8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

h2_proxy_cache.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ push @$frames, $_ for @{$s->read(all => [{ sid => $sid }], wait => 0.2)};
157157
ok(!grep ({ $_->{type} eq "DATA" } @$frames),
158158
'proxy cache HEAD buffering off - no body');
159159

160+
SKIP: {
161+
skip 'win32', 1 if $^O eq 'MSWin32';
162+
160163
# client cancels stream with a cacheable request that was sent to upstream
161164
# HEADERS should not be produced for the canceled stream
162165

@@ -168,6 +171,8 @@ $s->h2_rst($sid, 8);
168171
$frames = $s->read(all => [{ sid => $sid, fin => 0x4 }], wait => 1.2);
169172
ok(!(grep { $_->{type} eq "HEADERS" } @$frames), 'no headers');
170173

174+
}
175+
171176
# client closes connection after sending a cacheable request producing alert
172177

173178
$s = Test::Nginx::HTTP2->new();

0 commit comments

Comments
 (0)