[master] cfed0152c fix unrelated syntax errors in vtcs.

Nils Goroll nils.goroll at uplex.de
Fri Jan 15 17:27:09 UTC 2021


commit cfed0152c0b846285b18c897e96f1e4e4b56a98d
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Jan 15 18:23:41 2021 +0100

    fix unrelated syntax errors in vtcs.
    
    These tests had syntax errors besides the error handling actually being
    tested, which triggered with future changes to VCC.
    
    Originally from #3163

diff --git a/bin/varnishtest/tests/e00030.vtc b/bin/varnishtest/tests/e00030.vtc
index f5b5f168c..0a529d1f9 100644
--- a/bin/varnishtest/tests/e00030.vtc
+++ b/bin/varnishtest/tests/e00030.vtc
@@ -2,6 +2,8 @@ varnishtest "Test req_top.* in an ESI context"
 
 varnish v1 -arg "-p feature=+esi_disable_xml_check" \
 	   -errvcl {Variable is read only.} {
+	backend foo None;
+
 	sub vcl_recv {
 		set req_top.url = "/foo";
 	}
diff --git a/bin/varnishtest/tests/v00018.vtc b/bin/varnishtest/tests/v00018.vtc
index 56116f9ab..7e8b2b827 100644
--- a/bin/varnishtest/tests/v00018.vtc
+++ b/bin/varnishtest/tests/v00018.vtc
@@ -9,7 +9,7 @@ varnish v1 -vcl {
 
 varnish v1 -errvcl {Variable is read only.} {
 	backend b { .host = "${localhost}"; }
-	sub vcl_miss { set now = 1000; }
+	sub vcl_miss { set now += 1s; }
 }
 
 varnish v1 -vcl {


More information about the varnish-commit mailing list