summaryrefslogtreecommitdiffabout
path: root/tests
Side-by-side diff
Diffstat (limited to 'tests') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/test01.at9
-rw-r--r--tests/test02.at9
2 files changed, 12 insertions, 6 deletions
diff --git a/tests/test01.at b/tests/test01.at
index 116c8f1..62eb4fb 100644
--- a/tests/test01.at
+++ b/tests/test01.at
@@ -17,3 +17,3 @@
AT_SETUP([appends])
-AT_KEYWORDS([append])
+AT_KEYWORDS([test01 append])
@@ -34,3 +34,3 @@ varnish v1 -vcl+backend {
sub vcl_init {
- binlog.init("dir=$cwd/log;size=1M;pattern=logfile");
+ binlog.init("$cwd/log", "LL", "size=1M;pattern=logfile");
}
@@ -40,3 +40,6 @@ varnish v1 -vcl+backend {
sub vcl_recv {
- binlog.sappend(req.http.X-nid, req.http.X-aid);
+ binlog.start();
+ binlog.pack(req.http.X-nid);
+ binlog.pack(req.http.X-aid);
+ binlog.commit();
return (lookup);
diff --git a/tests/test02.at b/tests/test02.at
index df639a5..459a3cc 100644
--- a/tests/test02.at
+++ b/tests/test02.at
@@ -17,3 +17,3 @@
AT_SETUP([log rotation])
-AT_KEYWORDS([rotation])
+AT_KEYWORDS([test02 rotation])
@@ -34,3 +34,3 @@ varnish v1 -vcl+backend {
sub vcl_init {
- binlog.init("dir=$cwd/log;size=1M;interval=10;roundts=1;pattern=%S.log");
+ binlog.init("$cwd/log","LL","size=1M;interval=10;roundts=1;pattern=%S.log");
}
@@ -40,3 +40,6 @@ varnish v1 -vcl+backend {
sub vcl_recv {
- binlog.sappend(req.http.X-nid, req.http.X-aid);
+ binlog.start();
+ binlog.pack(req.http.X-nid);
+ binlog.pack(req.http.X-aid);
+ binlog.commit();
return (lookup);

Return to:

Send suggestions and report system problems to the System administrator.