X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fwatch_multiple_headers.t;h=33ed0770edd61180e4994f5a8e4de50461c7d764;hb=HEAD;hp=3a39eba9e0ea2540148db28dcb30094ece0f91bc;hpb=b3a04ae18a42ed960c89cc81c209633da6976380;p=public-inbox.git diff --git a/t/watch_multiple_headers.t b/t/watch_multiple_headers.t index 3a39eba9..33ed0770 100644 --- a/t/watch_multiple_headers.t +++ b/t/watch_multiple_headers.t @@ -1,15 +1,15 @@ -# Copyright (C) 2020 all contributors +# Copyright (C) 2020-2021 all contributors # License: AGPL-3.0+ use strict; use Test::More; use PublicInbox::Config; use PublicInbox::TestCommon; require_git(2.6); -require_mods(qw(Search::Xapian DBD::SQLite Filesys::Notify::Simple)); +require_mods(qw(Search::Xapian DBD::SQLite)); my ($tmpdir, $for_destroy) = tmpdir(); my $inboxdir = "$tmpdir/v2"; my $maildir = "$tmpdir/md"; -use_ok 'PublicInbox::WatchMaildir'; +use_ok 'PublicInbox::Watch'; use_ok 'PublicInbox::Emergency'; my $cfgpfx = "publicinbox.test"; my $addr = 'test-public@example.com'; @@ -54,16 +54,16 @@ PublicInbox::Emergency->new($maildir)->prepare(\$msg_to); PublicInbox::Emergency->new($maildir)->prepare(\$msg_cc); PublicInbox::Emergency->new($maildir)->prepare(\$msg_none); -my $cfg = <new(\$cfg); -PublicInbox::WatchMaildir->new($config)->scan('full'); -my $ibx = $config->lookup_name('test'); +my $cfg = PublicInbox::Config->new(\$raw); +PublicInbox::Watch->new($cfg)->scan('full'); +my $ibx = $cfg->lookup_name('test'); ok($ibx, 'found inbox by name'); my $num = $ibx->mm->num_for('to@a.com');