about summary refs log tree commit homepage
path: root/t/lei_store.t
diff options
context:
space:
mode:
Diffstat (limited to 't/lei_store.t')
-rw-r--r--t/lei_store.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/lei_store.t b/t/lei_store.t
index c31e27a2..17ee0729 100644
--- a/t/lei_store.t
+++ b/t/lei_store.t
@@ -1,11 +1,11 @@
 #!perl -w
-# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use v5.10.1;
 use Test::More;
 use PublicInbox::TestCommon;
-require_mods(qw(DBD::SQLite Search::Xapian));
+require_mods(qw(DBD::SQLite Xapian));
 require_git 2.6;
 require_ok 'PublicInbox::LeiStore';
 require_ok 'PublicInbox::ExtSearch';
@@ -138,7 +138,8 @@ Subject: timezone-dependent test
 WHAT IS TIME ANYMORE?
 EOM
 
-        ok($sto->add_eml($eml), 'recently received message');
+        my $smsg = $sto->add_eml($eml);
+        ok($smsg && $smsg->{blob}, 'recently received message');
         $sto->done;
         local $ENV{TZ} = 'GMT+5';
         my $lse = $sto->search;
@@ -148,4 +149,7 @@ EOM
         is($mset->size, 1, 'rt:1.hour.ago.. works w/ local time');
 }
 
+is_deeply([glob("$store_dir/local/*.git/info/refs")], [],
+        'no info/refs in private lei/store');
+
 done_testing;