Commit bf6d14d9 authored by Nils Goroll's avatar Nils Goroll

Improve snapshot/reset test

parent db1b11fd
......@@ -10,16 +10,25 @@ varnish v1 -vcl+backend {
import vtc;
sub vcl_recv {
set req.http.ws-free = vtc.workspace_free(session);
vtc.workspace_alloc(session, std.integer(req.http.ws-free, 0));
set req.http.ws-free1 = vtc.workspace_free(session);
vtc.workspace_alloc(session, std.integer(req.http.ws-free1, 0));
set req.http.ws-free2 = vtc.workspace_free(session);
vtc.workspace_snapshot(session);
vtc.workspace_reset(session);
set req.http.ws-free3 = vtc.workspace_free(session);
}
} -start
logexpect l1 -v v1 -g request {
expect * * ReqHeader {^ws-free1:}
expect 0 = ReqHeader {^ws-free2: 0$}
expect 0 = ReqHeader {^ws-free3: 0$}
} -start
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
} -run
logexpect l1 -wait
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment