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

Make this test un-racy.

parent a2392eb7
......@@ -2,9 +2,13 @@ varnishtest "Slim down hit-for-miss / hit-for-miss objects"
# see also #2768
server s1 -repeat 2 {
server s1 {
rxreq
txresp -bodylen 65535
expect req.url == "/hfm"
txresp -hdr "HFM: True" -bodylen 65530
rxreq
expect req.url == "/hfp"
txresp -hdr "HFP: True" -bodylen 65550
} -start
varnish v1 -arg "-s Transient=default" -vcl+backend {
......@@ -25,16 +29,15 @@ logexpect l1 -v v1 -g raw {
client c1 {
txreq -url "/hfm"
rxresp
} -start
client c2 {
expect resp.status == 200
expect resp.http.hfm == True
txreq -url "/hfp"
rxresp
expect resp.status == 200
expect resp.http.hfp == True
} -run
client c1 -wait
logexpect l1 -wait
varnish v1 -expect SM?.Transient.c_bytes > 131072
varnish v1 -expect SM?.Transient.g_bytes < 65536
varnish v1 -expect SM?.Transient.g_bytes < 2000
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