summaryrefslogtreecommitdiffabout
path: root/tests/batchset.at
Side-by-side diff
Diffstat (limited to 'tests/batchset.at') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/batchset.at6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/batchset.at b/tests/batchset.at
index be07cae..506fe78 100644
--- a/tests/batchset.at
+++ b/tests/batchset.at
@@ -16,22 +16,24 @@
AT_SETUP(batchset)
AT_KEYWORDS(batchset)
AT_VARNISHTEST([
sub vcl_recv {
- variable.batchset("y=i,x=s", "^/(\d+)/(.+)", req.url);
+ variable.batchset("y:i,x,time:d=\3s", "^/(\d+)/(.+)/(\d+)", req.url);
}
sub vcl_deliver {
set resp.http.X-X = variable.get("x");
set resp.http.X-Y = variable.get_int("y");
+ set resp.http.X-Time = variable.get_duration("time");
}
],[
-txreq -url /10/test
+txreq -url /10/test/60
rxresp
expect resp.http.X-X == "test"
expect resp.http.X-Y == "10"
+expect resp.http.X-Time == "60.000"
])
AT_CLEANUP
\ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.