[master] 043ecc5 Make sure that the vcl poker never sees the high default cooldown timer parameter.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Apr 14 00:28:15 CEST 2015
commit 043ecc54801915ac99ecdf199a596c106656ddcb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Apr 13 22:27:20 2015 +0000
Make sure that the vcl poker never sees the high default cooldown
timer parameter.
diff --git a/bin/varnishtest/tests/v00044.vtc b/bin/varnishtest/tests/v00044.vtc
index b89b73f..6f44d82 100644
--- a/bin/varnishtest/tests/v00044.vtc
+++ b/bin/varnishtest/tests/v00044.vtc
@@ -7,15 +7,13 @@ server s1 -repeat 20 {
close
} -start
-varnish v1 -vcl {
+varnish v1 -arg "-p vcl_cooldown=1" -vcl {
backend default {
.host = "${s1_addr}";
.probe = { .interval = 1s; .initial = 1;}
}
} -start
-varnish v1 -cliok "param.set vcl_cooldown 1"
-
# We only have one vcl yet
varnish v1 -expect VBE.vcl1.default.happy >= 0
varnish v1 -expect !VBE.vcl2.default.happy
@@ -50,7 +48,7 @@ varnish v1 -expect VBE.vcl1.default.happy >= 0
varnish v1 -expect VBE.vcl2.default.happy >= 0
# and the unused one should go cold
-delay 3
+delay 4
varnish v1 -expect !VBE.vcl2.default.happy
# Mark the used warm and use it the other
More information about the varnish-commit
mailing list