Commit b5922ed6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Regression test case for ticket 365: restart in hit.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3387 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9369e400
# $Id$
test "Test restarts in vcl_hit"
server s1 {
rxreq
expect req.url == "/foo"
txresp -status 200 -body "1"
rxreq
expect req.url == "/foo"
txresp -status 200 -body "22"
} -start
varnish v1 -vcl+backend {
sub vcl_hit {
set obj.cacheable = false;
restart;
}
} -start
client c1 {
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.bodylen == 1
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.bodylen == 2
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment