about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-01 02:36:34 +0000
committerEric Wong <e@80x24.org>2016-07-01 02:36:34 +0000
commit6a167873a8b991a305a63b8718b1699e22050380 (patch)
tree4de9b2fbfaae02ad392327a53e51c52d75e9166d /t
parentadd1c663d1048d76b3d608e81f8e653f79b8f9f5 (diff)
downloadpublic-inbox-6a167873a8b991a305a63b8718b1699e22050380.tar.gz
Probably better than bloating our own API with configurable
warning streams and such...
Diffstat (limited to 't')
-rw-r--r--t/watch_maildir.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/watch_maildir.t b/t/watch_maildir.t
index 21389638..3969c80d 100644
--- a/t/watch_maildir.t
+++ b/t/watch_maildir.t
@@ -94,7 +94,10 @@ More majordomo info at  http://vger.kernel.org/majordomo-info.html\n);
         local $ENV{PATH} = $fail_path;
         PublicInbox::Emergency->new($maildir)->prepare(\$msg);
         $config->{'publicinboxwatch.spamcheck'} = 'spamc';
-        PublicInbox::WatchMaildir->new($config)->scan;
+        {
+                local $SIG{__WARN__} = sub {}; # quiet spam check warning
+                PublicInbox::WatchMaildir->new($config)->scan;
+        }
         @list = $git->qx(qw(ls-tree -r --name-only refs/heads/master));
         is(scalar @list, 0, 'tree has no files spamc checked');
         is(unlink(glob("$maildir/new/*")), 1);