From 0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 May 2019 01:18:08 +0000 Subject: lazy load Xapian and make it optional for v2 More tests work without Search::Xapian, now. Usability issues still need to be fixed --- t/psgi_search.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/psgi_search.t') diff --git a/t/psgi_search.t b/t/psgi_search.t index da6cc682..1adc1d6e 100644 --- a/t/psgi_search.t +++ b/t/psgi_search.t @@ -8,13 +8,13 @@ use Email::MIME; use PublicInbox::Config; use PublicInbox::WWW; use bytes (); # only for bytes::length -my @mods = qw(PublicInbox::SearchIdx HTTP::Request::Common Plack::Test +my @mods = qw(Search::Xapian HTTP::Request::Common Plack::Test URI::Escape Plack::Builder); foreach my $mod (@mods) { eval "require $mod"; plan skip_all => "$mod missing for psgi_search.t" if $@; } -use_ok $_ foreach @mods; +use_ok $_ foreach (@mods, qw(PublicInbox::SearchIdx)); my $tmpdir = tempdir('pi-psgi-search.XXXXXX', TMPDIR => 1, CLEANUP => 1); my $git_dir = "$tmpdir/a.git"; -- cgit v1.2.3-24-ge0c7