about summary refs log tree commit homepage
path: root/t/search-thr-index.t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-03 20:21:05 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-03 20:24:43 +0000
commit031dcde21cd8dab5494d9715ba50d6a539e3fb42 (patch)
tree172df048191ee4cb07388f8d0b2a1e7246552667 /t/search-thr-index.t
parentb212aee7e13c460b73a3632458ae96c39d9eac97 (diff)
downloadpublic-inbox-031dcde21cd8dab5494d9715ba50d6a539e3fb42.tar.gz
We can't rely on header order for Message-ID after all
since we fall back to existing MIDs if they exist and
are unseen.  This lets us use SearchMsg->mid to get the
MID we associated with the NNTP article number to ensure
all NNTP article lookups roundtrip correctly.
Diffstat (limited to 't/search-thr-index.t')
-rw-r--r--t/search-thr-index.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/search-thr-index.t b/t/search-thr-index.t
index c3534f6b..6c6e4c57 100644
--- a/t/search-thr-index.t
+++ b/t/search-thr-index.t
@@ -41,8 +41,8 @@ foreach (reverse split(/\n\n/, $data)) {
         $mime->header_set('From' => 'bw@g');
         $mime->header_set('To' => 'git@vger.kernel.org');
         my $bytes = bytes::length($mime->as_string);
-        my $doc_id = $rw->add_message($mime, $bytes, ++$num, 'ignored');
         my $mid = $mime->header('Message-Id');
+        my $doc_id = $rw->add_message($mime, $bytes, ++$num, 'ignored', $mid);
         push @mids, $mid;
         ok($doc_id, 'message added: '. $mid);
 }