[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: [master] 504c885 Stabilize a race in this test with some small delay
From: Poul-Henning Kamp <phk () FreeBSD ! org>
Date: 2014-05-20 8:02:31
Message-ID: E1Wmf0J-000624-Sg () project ! varnish-software ! com
[Download RAW message or body]
commit 504c885847f2d0ed8ae350b11c28fb00b05e21cd
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Tue May 20 07:48:56 2014 +0000
Stabilize a race in this test with some small delay
diff --git a/bin/varnishtest/tests/c00020.vtc b/bin/varnishtest/tests/c00020.vtc
index 509d6ee..ec54fe3 100644
--- a/bin/varnishtest/tests/c00020.vtc
+++ b/bin/varnishtest/tests/c00020.vtc
@@ -3,7 +3,7 @@ varnishtest "Test -h critbit a bit"
server s1 {
rxreq
expect req.url == "/"
- txresp -hdr "Connection: close" -body "012345\n"
+ txresp -hdr "ID: slash" -hdr "Connection: close" -body "012345\n"
} -start
varnish v1 -arg "-hcritbit" -vcl+backend { } -start
@@ -13,41 +13,55 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
+ expect resp.http.ID == "slash"
} -run
+delay .1
client c2 {
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1004 1002"
+ expect resp.http.ID == "slash"
} -run
+delay .1
server s1 {
rxreq
expect req.url == "/foo"
- txresp -body "012345\n"
+ txresp -hdr "ID: foo" -body "012345\n"
rxreq
expect req.url == "/bar"
- txresp -body "012345\n"
+ txresp -hdr "ID: bar" -body "012345\n"
} -start
-client c2 {
+client c1 {
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1006"
+ expect resp.http.ID == "foo"
+ delay .1
+
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1008 1002"
+ expect resp.http.ID == "slash"
+ delay .1
+
txreq -url "/bar"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1009"
+ expect resp.http.ID == "bar"
+ delay .1
+
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1011 1007"
+ expect resp.http.ID == "foo"
} -run
varnish v1 -expect sess_conn == 3
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic