Permalink
Browse files

Make this test un-racy.

  • Loading branch information...
bsdphk committed Nov 6, 2018
1 parent a2392eb commit cd178217e1397110e5401ae07e03493e463d3b69
Showing with 11 additions and 8 deletions.
  1. +11 −8 bin/varnishtest/tests/r01821.vtc
@@ -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

0 comments on commit cd17821

Please sign in to comment.