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.
$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: $@";
write_file '>', $ret, <<EOM;
use v5.12;
use Plack::Builder;
+use PublicInbox::WwwStatic;
my \$ws = PublicInbox::WwwStatic->new(docroot => "$tmpdir" @_);
builder { sub { \$ws->call(shift) } }
EOM