From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D9CFB1F4C8 for ; Fri, 15 Nov 2024 02:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1731639572; bh=zUwt1eHI9FIMW4H85XTwfwDDfEpMNlIvxy9mqfOiX2k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GFM/cS144dlAvtJrZ9aN0unmDegSGTjfa2BdIK4xDpCz1+Xv1k2Ffgp8eJVrbvA+u NPIV96iUMqpxjYpwDJ4HJiBa0OuzFffnwL6NcGWMXy8tVjhAiwGeYoU9Cp9exgN+YL ctQ1o+UfjdugkQYmyG7CtIHOLhIUhAX0LtdBwVeQ= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/6] tests: fix missing modules under TEST_RUN_MODE=0 Date: Fri, 15 Nov 2024 02:59:27 +0000 Message-ID: <20241115025932.1647240-2-e@80x24.org> In-Reply-To: <20241115025932.1647240-1-e@80x24.org> References: <20241115025932.1647240-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: By default, we rely heavily on preload to speed up tests and missing modules were always present by the time we hit some tests. However, the more realistic (and significantly slower) TEST_RUN_MODE=0 doesn't preload so we must explicitly load missing modules. --- t/extsearch.t | 1 + t/www_static.t | 1 + 2 files changed, 2 insertions(+) diff --git a/t/extsearch.t b/t/extsearch.t index 28c43763..1a212bc8 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -609,6 +609,7 @@ if ('indexheader support') { $es = PublicInbox::Config->new($cfg_path)->ALL; my $mset = $es->mset('xarchiveshash:deadbeefcafe'); is $mset->size, 1, 'extindex.*.indexheader works'; + require PublicInbox::XapClient; local $PublicInbox::Search::XHC = PublicInbox::XapClient::start_helper('-j0') or xbail "no XHC: $@"; diff --git a/t/www_static.t b/t/www_static.t index 8fb86a82..e258be1c 100644 --- a/t/www_static.t +++ b/t/www_static.t @@ -16,6 +16,7 @@ my $psgi_env = sub { # @_ is passed to WwwStatic->new write_file '>', $ret, <new(docroot => "$tmpdir" @_); builder { sub { \$ws->call(shift) } } EOM