about summary refs log tree commit homepage
path: root/t/search.t
diff options
context:
space:
mode:
Diffstat (limited to 't/search.t')
-rw-r--r--t/search.t6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/search.t b/t/search.t
index 82caf9e4..aa6f94bf 100644
--- a/t/search.t
+++ b/t/search.t
@@ -397,7 +397,9 @@ $ibx->with_umask(sub {
 
 $ibx->with_umask(sub {
         my $amsg = eml_load 't/search-amsg.eml';
-        ok($rw->add_message($amsg), 'added attachment');
+        my $oid = ('0'x40);
+        my $smsg = bless { blob => $oid }, 'PublicInbox::Smsg';
+        ok($rw->add_message($amsg, $smsg), 'added attachment');
         $rw_commit->();
         $ro->reopen;
         my $n = $ro->query('n:attached_fart.txt');
@@ -418,7 +420,7 @@ $ibx->with_umask(sub {
                 $art = $ro->{over_ro}->next_by_mid($mid, \$id, \$prev);
                 ok($art, 'article exists in OVER DB');
         }
-        $rw->unindex_blob($amsg);
+        $rw->unindex_eml($oid, $amsg);
         $rw->commit_txn_lazy;
         SKIP: {
                 skip('$art not defined', 1) unless defined $art;