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

Stabilize this test on CentOs

parent 630b5835
varnishtest "Failed post-streaming revalidation" varnishtest "Failed post-streaming revalidation"
barrier b1 cond 2 barrier b1 cond 3
barrier b2 sock 2 barrier b2 sock 2
barrier b3 sock 2
server s1 { server s1 {
rxreq rxreq
...@@ -20,7 +19,6 @@ server s2 { ...@@ -20,7 +19,6 @@ server s2 {
varnish v1 -cliok "param.set vsl_mask +ExpKill" varnish v1 -cliok "param.set vsl_mask +ExpKill"
varnish v1 -vcl+backend { varnish v1 -vcl+backend {
import directors;
import vtc; import vtc;
sub vcl_recv { sub vcl_recv {
...@@ -32,7 +30,6 @@ varnish v1 -vcl+backend { ...@@ -32,7 +30,6 @@ varnish v1 -vcl+backend {
sub vcl_backend_response { sub vcl_backend_response {
if (beresp.was_304) { if (beresp.was_304) {
vtc.barrier_sync("${b2_sock}"); vtc.barrier_sync("${b2_sock}");
vtc.barrier_sync("${b3_sock}");
} }
set beresp.ttl = 1ms; set beresp.ttl = 1ms;
} }
...@@ -46,20 +43,21 @@ client c1 { ...@@ -46,20 +43,21 @@ client c1 {
txreq -hdr "backend: s1" txreq -hdr "backend: s1"
rxresphdrs rxresphdrs
expect resp.status == 200 expect resp.status == 200
barrier b1 sync
expect_close expect_close
} -start } -start
barrier b1 sync
logexpect l1 -wait logexpect l1 -wait
varnish v1 -vsl_catchup
barrier b1 sync
client c2 { client c2 {
txreq -hdr "backend: s2" txreq -hdr "backend: s2"
rxresphdrs rxresphdrs
expect resp.status == 200 expect resp.status == 200
expect_close expect_close
} -start } -run
client c1 -wait client c1 -wait
barrier b3 sync
client c2 -wait
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