diff options
author | Eric Wong <e@80x24.org> | 2019-05-15 01:18:08 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-15 01:18:54 +0000 |
commit | 0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb (patch) | |
tree | a9295edad8c28aec3f87fc35c9142d87d4fea39e /t/search.t | |
parent | 70caf43a131fc5bdf7104f82f2acee9d5353d6a8 (diff) | |
download | public-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.t | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |