[6.0] 41b2ac6bf Add regression test for #2729, but don't spend an entire test-case on it

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:53:22 UTC 2018


commit 41b2ac6bf13b4367488399d278aa8d9b5c2c3e93
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