]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/watch_v1_v2_mix_no_modify: load PublicInbox::Config
authorEric Wong <e@80x24.org>
Sat, 15 Feb 2025 11:10:08 +0000 (11:10 +0000)
committerEric Wong <e@80x24.org>
Mon, 17 Feb 2025 20:09:08 +0000 (20:09 +0000)
For testing with TEST_RUN_MODE=0 (which spawns new processes
instead of reusing them), we can't rely on packages being loaded
by subprocesses influencing the main Perl process.  Thus we must
load PublicInbox::Config explicitly to prevent failures with
this run mode.

t/watch_v1_v2_mix_no_modify.t

index 759fd0bbcaf86f0437e195b5a7ae70b655ee6bfa..d0e2a78cb7a9a2ca645a372069336e9c27a0215f 100644 (file)
@@ -9,6 +9,7 @@ use PublicInbox::InboxIdle;
 use PublicInbox::DS qw(now);
 use PublicInbox::IO qw(write_file);
 use PublicInbox::Eml;
+use PublicInbox::Config;
 my $tmpdir = tmpdir;
 local $ENV{HOME} = "$tmpdir";
 local $ENV{PI_CONFIG} = "$tmpdir/.public-inbox/config";