Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
504c8858
Commit
504c8858
authored
May 20, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stabilize a race in this test with some small delay
parent
afe89d55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
c00020.vtc
bin/varnishtest/tests/c00020.vtc
+18
-4
No files found.
bin/varnishtest/tests/c00020.vtc
View file @
504c8858
...
@@ -3,7 +3,7 @@ varnishtest "Test -h critbit a bit"
...
@@ -3,7 +3,7 @@ varnishtest "Test -h critbit a bit"
server s1 {
server s1 {
rxreq
rxreq
expect req.url == "/"
expect req.url == "/"
txresp -hdr "Connection: close" -body "012345\n"
txresp -hdr "
ID: slash" -hdr "
Connection: close" -body "012345\n"
} -start
} -start
varnish v1 -arg "-hcritbit" -vcl+backend { } -start
varnish v1 -arg "-hcritbit" -vcl+backend { } -start
...
@@ -13,41 +13,55 @@ client c1 {
...
@@ -13,41 +13,55 @@ client c1 {
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
expect resp.http.X-Varnish == "1001"
expect resp.http.ID == "slash"
} -run
} -run
delay .1
client c2 {
client c2 {
txreq -url "/"
txreq -url "/"
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.http.X-Varnish == "1004 1002"
expect resp.http.X-Varnish == "1004 1002"
expect resp.http.ID == "slash"
} -run
} -run
delay .1
server s1 {
server s1 {
rxreq
rxreq
expect req.url == "/foo"
expect req.url == "/foo"
txresp -body "012345\n"
txresp -
hdr "ID: foo" -
body "012345\n"
rxreq
rxreq
expect req.url == "/bar"
expect req.url == "/bar"
txresp -body "012345\n"
txresp -
hdr "ID: bar" -
body "012345\n"
} -start
} -start
client c
2
{
client c
1
{
txreq -url "/foo"
txreq -url "/foo"
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.http.X-Varnish == "1006"
expect resp.http.X-Varnish == "1006"
expect resp.http.ID == "foo"
delay .1
txreq -url "/"
txreq -url "/"
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.http.X-Varnish == "1008 1002"
expect resp.http.X-Varnish == "1008 1002"
expect resp.http.ID == "slash"
delay .1
txreq -url "/bar"
txreq -url "/bar"
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.http.X-Varnish == "1009"
expect resp.http.X-Varnish == "1009"
expect resp.http.ID == "bar"
delay .1
txreq -url "/foo"
txreq -url "/foo"
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.http.X-Varnish == "1011 1007"
expect resp.http.X-Varnish == "1011 1007"
expect resp.http.ID == "foo"
} -run
} -run
varnish v1 -expect sess_conn == 3
varnish v1 -expect sess_conn == 3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment