aboutsummaryrefslogtreecommitdiff
path: root/tests/int.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/int.at')
-rw-r--r--tests/int.at26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/int.at b/tests/int.at
index fc1140a..7b193cf 100644
--- a/tests/int.at
+++ b/tests/int.at
@@ -17,20 +17,20 @@
AT_SETUP(int)
AT_KEYWORDS(int)
-AT_CHECK([
-AT_VCL([variable.set_int("ten", 10);
-variable.set_int("five",5);],
-[set resp.http.X-Five = variable.get_int("five");
- set resp.http.X-Ten = variable.get_int("ten");],
-[txreq -url /
- rxresp
- expect resp.http.X-Five == "5"
- expect resp.http.X-Ten == "10"
-])
-AT_VARNISHTEST
+AT_VARNISHTEST([
+sub vcl_recv {
+ variable.set_int("ten", 10);
+ variable.set_int("five",5);
+}
+sub vcl_deliver {
+ set resp.http.X-Five = variable.get_int("five");
+ set resp.http.X-Ten = variable.get_int("ten");
+}
],
-[0],
-[OK
+[txreq -url /
+rxresp
+expect resp.http.X-Five == "5"
+expect resp.http.X-Ten == "10"
])
AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.