From d571f8a98ae32fa8c5aae31a9fcdddcec7242a8a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 14 Nov 2019 06:41:13 +0000 Subject: t/psgi_mount: require SearchIdx before using We may not implicitly load it via other means in the future. --- t/psgi_mount.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/psgi_mount.t') diff --git a/t/psgi_mount.t b/t/psgi_mount.t index aa7c863f..7de2bc0e 100644 --- a/t/psgi_mount.t +++ b/t/psgi_mount.t @@ -90,9 +90,10 @@ test_psgi($app, sub { SKIP: { my @mods = qw(DBI DBD::SQLite Search::Xapian IO::Uncompress::Gunzip); foreach my $mod (@mods) { - eval "require $mod" or skip "$mod not available: $@", 2; + eval "require $mod" or skip "$mod not available: $@", 3; } my $ibx = $config->lookup_name('test'); + require_ok 'PublicInbox::SearchIdx'; PublicInbox::SearchIdx->new($ibx, 1)->index_sync; test_psgi($app, sub { my ($cb) = @_; -- cgit v1.2.3-24-ge0c7