[master] ef39946 make newly introduced vtcs less timing-critical

Nils Goroll nils.goroll at uplex.de
Mon Sep 12 12:55:12 CEST 2016


commit ef39946603d91e185875f3a1ff258687d35691bf
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Sep 12 12:53:53 2016 +0200

    make newly introduced vtcs less timing-critical
    
    Follow-up 9095c5cfbac7fa3cb48257f6631f24239b30ee45
    
    Belongs to #2057

diff --git a/bin/varnishtest/tests/c00011.vtc b/bin/varnishtest/tests/c00011.vtc
index 7372274..758c35b 100644
--- a/bin/varnishtest/tests/c00011.vtc
+++ b/bin/varnishtest/tests/c00011.vtc
@@ -28,7 +28,7 @@ client c1 {
 	expect resp.status == 200
 	expect resp.bodylen == 6
 	expect resp.http.x-varnish == "1001"
-	expect resp.http.o_age == "0.000"
+	expect resp.http.o_age ~ "^0"
 	expect resp.http.o_ttl == "120.000"
 	expect resp.http.o_grace == "10.000"
 	expect resp.http.o_keep == "0.000"
@@ -38,7 +38,7 @@ client c1 {
 	expect resp.status == 200
 	expect resp.bodylen == 7
 	expect resp.http.x-varnish == "1003"
-	expect resp.http.o_age == "0.000"
+	expect resp.http.o_age ~ "^0"
 	expect resp.http.o_ttl == "120.000"
 	expect resp.http.o_grace == "10.000"
 	expect resp.http.o_keep == "0.000"
diff --git a/bin/varnishtest/tests/c00012.vtc b/bin/varnishtest/tests/c00012.vtc
index 77dafd8..e1c5883 100644
--- a/bin/varnishtest/tests/c00012.vtc
+++ b/bin/varnishtest/tests/c00012.vtc
@@ -28,7 +28,7 @@ client c1 {
 	expect resp.status == 200
 	expect resp.bodylen == 6
 	expect resp.http.x-varnish == "1001"
-	expect resp.http.o_age == "0.000"
+	expect resp.http.o_age ~ "^0"
 	expect resp.http.o_ttl == "-0.000"
 	expect resp.http.o_grace == "0.000"
 	expect resp.http.o_keep == "0.000"
@@ -38,7 +38,7 @@ client c1 {
 	expect resp.status == 200
 	expect resp.bodylen == 7
 	expect resp.http.x-varnish == "1003"
-	expect resp.http.o_age == "0.000"
+	expect resp.http.o_age ~ "^0"
 	expect resp.http.o_ttl == "-0.000"
 	expect resp.http.o_grace == "0.000"
 	expect resp.http.o_keep == "0.000"



More information about the varnish-commit mailing list