From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 36D181F5A5 for ; Thu, 14 Nov 2019 06:41:15 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/4] t/psgi_mount: require SearchIdx before using Date: Thu, 14 Nov 2019 06:41:13 +0000 Message-Id: <20191114064114.9763-4-e@80x24.org> In-Reply-To: <20191114064114.9763-1-e@80x24.org> References: <20191114064114.9763-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We may not implicitly load it via other means in the future. --- t/psgi_mount.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) = @_;