[master] 610e0bbd4 Add regression test for #2729, but don't spend an entire test-case on it

Poul-Henning Kamp phk at FreeBSD.org
Mon Aug 6 17:25:09 UTC 2018


commit 610e0bbd40f33045a03b066636913dcf3c52afe7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 6 17:24:04 2018 +0000

    Add regression test for #2729, but don't spend an entire test-case on it

diff --git a/bin/varnishtest/tests/v00020.vtc b/bin/varnishtest/tests/v00020.vtc
index 60e1fb346..da563157f 100644
--- a/bin/varnishtest/tests/v00020.vtc
+++ b/bin/varnishtest/tests/v00020.vtc
@@ -137,6 +137,11 @@ varnish v1 -vcl {
 		elseif (3) { }
 		else if (4) { }
 		else { }
+
+		# regression test for #2729
+		if (req.grace < 0s || req.grace < 1s && req.grace < 2s) {
+			return (pass);
+		}
 	}
 }
 


More information about the varnish-commit mailing list