Skip to content

Commit

Permalink
Make this test more resistant to machine overload,
Browse files Browse the repository at this point in the history
but also make it fail faster when appropriate
  • Loading branch information
bsdphk committed Feb 6, 2019
1 parent 260d0ec commit c21f58d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/varnishtest/tests/c00094.vtc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ varnishtest "Test Backend Polling with a backend listening at a UDS"
barrier b1 cond 2 barrier b1 cond 2


server s1 -listen "${tmpdir}/s1.sock" { server s1 -listen "${tmpdir}/s1.sock" {
timeout 3
fatal

# Probes # Probes

loop 8 { loop 8 {
rxreq rxreq
expect req.url == "/" expect req.url == "/"
Expand Down Expand Up @@ -39,13 +43,13 @@ varnish v1 -vcl {
.path = "${s1_sock}"; .path = "${s1_sock}";
.probe = { .probe = {
.timeout = 1 s; .timeout = 1 s;
.interval = 0.1 s; .interval = 0.5 s;
} }
} }


} -start } -start


barrier b1 sync barrier b1 sync


varnish v1 -cliexpect "^CLI RX| -+U+ Good UNIX" "backend.list -p" varnish v1 -cliexpect "^CLI RX| -+U+-{0,5} Good UNIX" "backend.list -p"
varnish v1 -cliexpect "^CLI RX| -+H{10}-{5}H{2}-{0,5} Happy" "backend.list -p" varnish v1 -cliexpect "^CLI RX| -+H{10}-{5}H{2}-{0,5} Happy" "backend.list -p"

0 comments on commit c21f58d

Please sign in to comment.