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

This test didn't actually use persistent storage because the

"shortlived" test puts the object in Transient.

Patch by:	gquintard
Fixes		#1387
parent 9cd74c3b
...@@ -10,15 +10,22 @@ server s1 { ...@@ -10,15 +10,22 @@ server s1 {
varnish v1 \ varnish v1 \
-arg "-spersistent,${tmpdir}/_.per,10m" \ -arg "-spersistent,${tmpdir}/_.per,10m" \
-arg "-pban_lurker_sleep=0" \ -arg "-pban_lurker_sleep=0" \
-arg "-pshortlived=0" \
-vcl+backend { -vcl+backend {
sub vcl_backend_response { sub vcl_backend_response {
set beresp.ttl = 3s; set beresp.ttl = 3s;
set beresp.keep = 0s;
set beresp.grace = 0s;
} }
} -start } -start
varnish v1 -cliok "param.set debug +syncvsl" varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set feature +wait_silo" varnish v1 -cliok "param.set feature +wait_silo"
logexpect l1 -v v1 -g vxid -q "Begin ~ bereq" {
expect * 1002 Storage "persistent s0"
} -start
client c1 { client c1 {
txreq -url "/foo" txreq -url "/foo"
rxresp rxresp
...@@ -27,6 +34,7 @@ client c1 { ...@@ -27,6 +34,7 @@ client c1 {
expect resp.http.foo == "foo1" expect resp.http.foo == "foo1"
} -run } -run
logexpect l1 -wait
varnish v1 -expect n_object == 1 varnish v1 -expect n_object == 1
varnish v1 -stop varnish v1 -stop
...@@ -44,6 +52,10 @@ varnish v1 -vcl+backend { ...@@ -44,6 +52,10 @@ varnish v1 -vcl+backend {
delay 5 delay 5
logexpect l1 -v v1 -g vxid -q "Begin ~ bereq" {
expect * 1002 Storage "persistent s0"
} -start
client c1 { client c1 {
txreq -url "/foo" txreq -url "/foo"
rxresp rxresp
...@@ -52,4 +64,5 @@ client c1 { ...@@ -52,4 +64,5 @@ client c1 {
expect resp.http.foo == "foo2" expect resp.http.foo == "foo2"
} -run } -run
logexpect l1 -wait
varnish v1 -expect n_object == 1 varnish v1 -expect n_object == 1
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