Commit 2eeb2a2d authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r3387:

Regression test case for ticket 365: restart in hit.



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3551 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2c58031b
# $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