about summary refs log tree commit homepage
path: root/t/watch_maildir.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-15 00:38:06 +0000
committerEric Wong <e@80x24.org>2019-10-15 20:26:41 +0000
commit1317fb7b4ace03f6d9dfb1a42ee5f9371a1bf913 (patch)
treef46b2e82a2edd849b3ded014bb4b209e778e6a2f /t/watch_maildir.t
parent53a8e32b97985803e9de12c4312a86a8850208b3 (diff)
downloadpublic-inbox-1317fb7b4ace03f6d9dfb1a42ee5f9371a1bf913.tar.gz
Rewrite a bunch of tests to use ordered input (emulating
"git config -l" output) so we can always walk sections in
the order they were given in the config file.
Diffstat (limited to 't/watch_maildir.t')
-rw-r--r--t/watch_maildir.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/t/watch_maildir.t b/t/watch_maildir.t
index d164bf35..e65ab9a9 100644
--- a/t/watch_maildir.t
+++ b/t/watch_maildir.t
@@ -35,13 +35,13 @@ ok(POSIX::mkfifo("$maildir/cur/fifo", 0777),
         'create FIFO to ensure we do not get stuck on it :P');
 my $sem = PublicInbox::Emergency->new($spamdir); # create dirs
 
-my $config = PublicInbox::Config->new({
-        "$cfgpfx.address" => $addr,
-        "$cfgpfx.mainrepo" => $git_dir,
-        "$cfgpfx.watch" => "maildir:$maildir",
-        "$cfgpfx.filter" => 'PublicInbox::Filter::Vger',
-        "publicinboxlearn.watchspam" => "maildir:$spamdir",
-});
+my $config = PublicInbox::Config->new(\<<EOF);
+$cfgpfx.address=$addr
+$cfgpfx.mainrepo=$git_dir
+$cfgpfx.watch=maildir:$maildir
+$cfgpfx.filter=PublicInbox::Filter::Vger
+publicinboxlearn.watchspam=maildir:$spamdir
+EOF
 
 PublicInbox::WatchMaildir->new($config)->scan('full');
 my $git = PublicInbox::Git->new($git_dir);