about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-10 21:41:55 +0000
committerEric Wong <e@80x24.org>2019-01-10 21:41:55 +0000
commitb0e5062d43a96372801713ef78a78d6a1bc852bc (patch)
tree76ea973c854c945989924a40905c855258a6419c /t
parentf6fea847bf71e5cc247497c95cdb73ccc74466d2 (diff)
parent59fd8cf084c6a67d9801c888a183eb83b552692d (diff)
downloadpublic-inbox-b0e5062d43a96372801713ef78a78d6a1bc852bc.tar.gz
* commit 'mem':
  view: more culling for search threads
  over: cull unneeded fields for get_thread
  searchmsg: remove unused fields for PSGI in Xapian results
  searchview: drop unused {seen} hashref
  searchmsg: remove Xapian::Document field
  searchmsg: get rid of termlist scanning for mid
  httpd: remove psgix.harakiri reference
Diffstat (limited to 't')
-rw-r--r--t/search.t10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/search.t b/t/search.t
index 3c758e68..6415a644 100644
--- a/t/search.t
+++ b/t/search.t
@@ -341,7 +341,7 @@ $ibx->with_umask(sub {
                 is(scalar(@$res), 1,
                         "searched $pfx successfully for From:");
                 foreach my $smsg (@$res) {
-                        like($smsg->from, qr/Laggy Sender/,
+                        like($smsg->from_name, qr/Laggy Sender/,
                                 "From appears with $pfx");
                 }
         }
@@ -358,16 +358,18 @@ $ibx->with_umask(sub {
 
         $res = $ro->query('q:theatre');
         is(scalar(@$res), 1, 'only one quoted body');
-        like($res->[0]->from, qr/\AQuoter/, 'got quoted body') if scalar(@$res);
+        like($res->[0]->from_name, qr/\AQuoter/,
+                'got quoted body') if (scalar(@$res));
 
         $res = $ro->query('nq:theatre');
         is(scalar @$res, 1, 'only one non-quoted body');
-        like($res->[0]->from, qr/\ANon-Quoter/, 'got non-quoted body') if scalar(@$res);
+        like($res->[0]->from_name, qr/\ANon-Quoter/,
+                'got non-quoted body') if (scalar(@$res));
 
         foreach my $pfx (qw(b: bs:)) {
                 $res = $ro->query($pfx . 'theatre');
                 is(scalar @$res, 2, "searched both bodies for $pfx");
-                like($res->[0]->from, qr/\ANon-Quoter/,
+                like($res->[0]->from_name, qr/\ANon-Quoter/,
                         "non-quoter first for $pfx") if scalar(@$res);
         }
 }