[master] 41eb79a69 stabilize timing-sensitive test

Nils Goroll nils.goroll at uplex.de
Fri Feb 7 12:40:06 UTC 2020


commit 41eb79a69f131bb2ab03033130011904dc8e96db
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Feb 7 13:33:41 2020 +0100

    stabilize timing-sensitive test
    
    There are two one-second delays on the server side, but varnishd might
    read the response a bit longer after the first delay such that the
    second interval is shortened from the varnish perspective.

diff --git a/bin/varnishtest/tests/s00004.vtc b/bin/varnishtest/tests/s00004.vtc
index 675a0c8d4..d86903f7c 100644
--- a/bin/varnishtest/tests/s00004.vtc
+++ b/bin/varnishtest/tests/s00004.vtc
@@ -37,7 +37,7 @@ logexpect l1 -v v1 -g request {
 	expect * =	Timestamp	{Start: \S+ 0\.000000 0\.000000}
 	expect * =	Timestamp	{Bereq: \S+ 0\.\d+ 0\.\d+}
 	expect * =	Timestamp	{Beresp: \S+ 1\.\d+ [01]\.\d+}
-	expect * =	Timestamp	{BerespBody: \S+ 2\.\d+ 1\.\d+}
+	expect * =	Timestamp	{BerespBody: \S+ 2\.\d+ (1\.\d+|0\.9)}
 	expect * =	End
 	expect 0 1003	Begin		{req 1001 restart}
 	expect * =	Timestamp	{Start: \S+ 2\.\d+ 0\.\d+}


More information about the varnish-commit mailing list