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
01ed6eb6
Unverified
Commit
01ed6eb6
authored
Dec 14, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use workspace_reserve() in the catflap test
I have checked that this catches #3752 too
parent
2b4ed68c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
m00051.vtc
bin/varnishtest/tests/m00051.vtc
+3
-3
No files found.
bin/varnishtest/tests/m00051.vtc
View file @
01ed6eb6
...
...
@@ -3,6 +3,7 @@ varnishtest "catflap"
varnish v1 -vcl {
import debug;
import std;
import vtc;
backend dummy { .host = "${bad_backend}"; }
...
...
@@ -14,13 +15,12 @@ varnish v1 -vcl {
} else if (req.http.get == "last") {
debug.catflap(last);
} else if (req.http.novcf) {
set req.http.consume = "some workspace"
;
vtc.workspace_reserve(client, -1)
;
return (pass);
} else if (req.http.rollback) {
debug.catflap(first);
std.rollback(req);
set req.http.consume = "some workspace";
set req.http.consume = "some workspace";
vtc.workspace_reserve(client, -1);
} else {
return (fail);
}
...
...
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