Skip to content

Commit b4832b6

Browse files
committed
Tests: removed rewrite dependency in h2_proxy_cache.t.
1 parent 9473f14 commit b4832b6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

h2_proxy_cache.t

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use Test::Nginx::HTTP2;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
my $t = Test::Nginx->new()->has(qw/http http_v2 proxy cache rewrite/)->plan(12)
26+
my $t = Test::Nginx->new()->has(qw/http http_v2 proxy cache/)->plan(12)
2727
->write_file_expand('nginx.conf', <<'EOF');
2828
2929
%%TEST_GLOBALS%%
@@ -52,23 +52,26 @@ http {
5252
proxy_cache NAME;
5353
proxy_cache_valid 1m;
5454
}
55+
5556
location /proxy_buffering_off {
5657
proxy_pass http://127.0.0.1:8081/;
5758
proxy_cache NAME;
5859
proxy_cache_valid 1m;
5960
proxy_buffering off;
6061
}
61-
location / {
62-
if ($arg_slow) {
63-
set $limit_rate 200;
64-
}
62+
63+
location / { }
64+
65+
location /slow {
66+
limit_rate 200;
6567
}
6668
}
6769
}
6870
6971
EOF
7072

7173
$t->write_file('t.html', 'SEE-THIS');
74+
$t->write_file('slow.html', 'SEE-THIS');
7275
$t->run();
7376

7477
###############################################################################
@@ -158,7 +161,7 @@ ok(!grep ({ $_->{type} eq "DATA" } @$frames),
158161
# HEADERS should not be produced for the canceled stream
159162

160163
$s = Test::Nginx::HTTP2->new();
161-
$sid = $s->new_stream({ path => '/cache/t.html?slow=1' });
164+
$sid = $s->new_stream({ path => '/cache/slow.html' });
162165

163166
$s->h2_rst($sid, 8);
164167

0 commit comments

Comments
 (0)