Permalink
Browse files

Make this test more resistant to machine overload,

but also make it fail faster when appropriate
  • Loading branch information...
bsdphk committed Feb 6, 2019
1 parent 260d0ec commit c21f58dfa634ae760e77f2f8f47f9b140ff8c1a0
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/varnishtest/tests/c00094.vtc
@@ -3,7 +3,11 @@ varnishtest "Test Backend Polling with a backend listening at a UDS"
barrier b1 cond 2

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

# Probes

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

} -start

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"

0 comments on commit c21f58d

Please sign in to comment.