about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-03 11:09:12 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-03 12:06:17 +0000
commitb8c41362f2a5c8fcc6b1846a79c72bfa77565297 (patch)
tree478667e1ca0d300260427e5499ff0a692b25913f /t/v2writable.t
parent445d2062a60959a04b55d7d1fe4439eff23cd44d (diff)
downloadpublic-inbox-b8c41362f2a5c8fcc6b1846a79c72bfa77565297.tar.gz
We we worked around the default range/termination conditions of
long_response in many cases to reduce calls to SQLite or Xapian.
So continue that trend and become more like the PSGI API
which doesn't force callers to specify an article range or
work inside a loop.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 62947351..2f839776 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -105,6 +105,7 @@ if ('ensure git configs are correct') {
 
 {
         $mime->header_set('Message-Id', '<abcde@1>', '<abcde@2>');
+        $mime->header_set('References', '<zz-mid@b>');
         ok($im->add($mime), 'message with multiple Message-ID');
         $im->done;
         my @found;
@@ -196,6 +197,15 @@ EOF
         }
         is_deeply([sort keys %lg], [sort keys %$x],
                 'XOVER and LISTGROUPS return the same article numbers');
+
+        my $xref = $n->xhdr('Xref', '1-');
+        is_deeply([sort keys %lg], [sort keys %$xref], 'Xref range OK');
+
+        my $mids = $n->xhdr('Message-ID', '1-');
+        is_deeply([sort keys %lg], [sort keys %$xref], 'Message-ID range OK');
+
+        my $rover = $n->xrover('1-');
+        is_deeply([sort keys %lg], [sort keys %$rover], 'XROVER range OK');
 };
 {
         local $ENV{NPROC} = 2;