[master] 548a4e6ed make test less timing sensitive
Nils Goroll
nils.goroll at uplex.de
Sat Apr 4 11:48:06 UTC 2020
commit 548a4e6ed34e6459cdda2a1fdfbbe371fde2195f
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sat Apr 4 13:24:27 2020 +0200
make test less timing sensitive
when the second request did not happen within the default
backend_remote_error_holddown == 0.25s, we would see two ECONNREFUSED
instead of one and a holddown.
Seen in vtest:
** top === varnish v1 -expect VBE.vcl1.foo.fail_econnrefused > 0
**** dT 6.132
** v1 as expected: VBE.vcl1.foo.fail_econnrefused (2) > 0
** top === varnish v1 -expect VBE.vcl1.foo.helddown > 0
diff --git a/bin/varnishtest/tests/b00015.vtc b/bin/varnishtest/tests/b00015.vtc
index 5f3b69c03..396da7899 100644
--- a/bin/varnishtest/tests/b00015.vtc
+++ b/bin/varnishtest/tests/b00015.vtc
@@ -67,6 +67,8 @@ server s1 {
txresp -status 502
} -start
+varnish v1 -cliok "param.set backend_remote_error_holddown 10"
+
varnish v1 -vcl+backend {
sub vcl_backend_response {
if (beresp.status == 502) {
More information about the varnish-commit
mailing list