about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-30 00:38:05 +0000
committerEric Wong <e@80x24.org>2015-08-30 01:10:01 +0000
commit8ea217f4452e34776ba294b5090827c99656cada (patch)
tree23d72ea008cdd0ba6d37dde2d8a303c60ecbe7e1 /t
parentf24d362fb0959cdfab37a6da0a66a985764a2752 (diff)
downloadpublic-inbox-8ea217f4452e34776ba294b5090827c99656cada.tar.gz
We no longer need them, as we can rely on index-time thread
resolution and thread merging.  This allows us to index less
data and hopefully increase efficiency.
Diffstat (limited to 't')
-rw-r--r--t/search.t21
1 files changed, 3 insertions, 18 deletions
diff --git a/t/search.t b/t/search.t
index 65539f14..02189ac4 100644
--- a/t/search.t
+++ b/t/search.t
@@ -135,15 +135,6 @@ sub filter_mids {
         my $second = $res->{msgs}->[0];
 
         isnt($first, $second, "offset returned different result from limit");
-
-        foreach my $f (qw(inreplyto references)) {
-                $res = $ro->query($f . ':root@s');
-                @res = filter_mids($res);
-                is_deeply(\@res, [ 'last@s' ],
-                          "got expected results for $f: match");
-                $res = $ro->query($f . ':root');
-                is($res->{total}, 0, "no partial mid match");
-        }
 }
 
 # ghost vivication
@@ -219,14 +210,8 @@ sub filter_mids {
 
         $rw_commit->();
         $ro->reopen;
-        my $res = $ro->query('references:root@s');
-        my @res = filter_mids($res);
-        is_deeply(\@res, [ sort('last@s', $long_midc) ],
-                  "got expected results for references: match");
-
-        my $followups = $ro->get_followups('root@s');
-        $followups = [ filter_mids($followups) ];
-        is_deeply($followups, [ filter_mids($res) ], "get_followups matches");
+        my $res;
+        my @res;
 
         my $long_reply_mid = 'reply-to-long@1';
         my $long_reply = Email::MIME->create(
@@ -301,7 +286,7 @@ sub filter_mids {
         ok($doc_id > 0, "doc_id defined with circular reference");
         my $smsg = $rw->lookup_message('circle@a');
         $smsg->ensure_metadata;
-        is($smsg->{references}, undef, "no references created");
+        is($smsg->references_sorted, '', "no references created");
 }
 
 done_testing();