[master] fefa8364d Make sure the expiry is in the VSL before proceeding

Poul-Henning Kamp phk at FreeBSD.org
Mon Jul 2 15:35:11 UTC 2018


commit fefa8364df09ba0f0f2d734f100d6bf8500f2392
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jul 2 15:34:05 2018 +0000

    Make sure the expiry is in the VSL before proceeding

diff --git a/bin/varnishtest/tests/b00063.vtc b/bin/varnishtest/tests/b00063.vtc
index 1adfe2680..7a68e2e2f 100644
--- a/bin/varnishtest/tests/b00063.vtc
+++ b/bin/varnishtest/tests/b00063.vtc
@@ -45,6 +45,12 @@ varnish v1 -vcl+backend {
 	}
 } -start
 
+logexpect l1 -v v1 -g raw {
+	expect * *	ExpKill		EXP_expire
+	expect * *	ExpKill		EXP_When
+	expect * *	ExpKill		EXP_expire
+} -start
+
 client c1 {
 	txreq -url "/1"
 	rxresp
@@ -76,6 +82,9 @@ client c2 {
 client c1 -wait
 client c2 -wait
 
+# Make sure the expiry has happened
+logexpect l1 -wait
+
 client c3 {
 	delay .1
 	# We should now get a HIT on the 404:


More information about the varnish-commit mailing list