about summary refs log tree commit homepage
path: root/t/search.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-15 01:18:08 +0000
committerEric Wong <e@80x24.org>2019-05-15 01:18:54 +0000
commit0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb (patch)
treea9295edad8c28aec3f87fc35c9142d87d4fea39e /t/search.t
parent70caf43a131fc5bdf7104f82f2acee9d5353d6a8 (diff)
downloadpublic-inbox-0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb.tar.gz
More tests work without Search::Xapian, now.
Usability issues still need to be fixed
Diffstat (limited to 't/search.t')
-rw-r--r--t/search.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/search.t b/t/search.t
index 493e00de..a9d0c920 100644
--- a/t/search.t
+++ b/t/search.t
@@ -3,8 +3,9 @@
 use strict;
 use warnings;
 use Test::More;
-eval { require PublicInbox::SearchIdx; };
-plan skip_all => "Xapian missing for search" if $@;
+eval { require Search::Xapian };
+plan skip_all => "Search::Xapian missing for search" if $@;
+require PublicInbox::SearchIdx;
 use File::Temp qw/tempdir/;
 use Email::MIME;
 my $tmpdir = tempdir('pi-search-XXXXXX', TMPDIR => 1, CLEANUP => 1);
@@ -12,7 +13,7 @@ my $git_dir = "$tmpdir/a.git";
 my ($root_id, $last_id);
 
 is(0, system(qw(git init --shared -q --bare), $git_dir), "git init (main)");
-eval { PublicInbox::Search->new($git_dir) };
+eval { PublicInbox::Search->new($git_dir)->xdb };
 ok($@, "exception raised on non-existent DB");
 
 my $rw = PublicInbox::SearchIdx->new($git_dir, 1);