X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fwatch_imap.t;h=eeda29eb45036480d92d6a2b6ace00dd93d6a840;hb=13a2fcc724576a78d0955f64dc0f4494545153c3;hp=9433bb6f443ffc906fe4d5c221ad2612eb1f0c3b;hpb=1d2cc9c8ebf7916616c947837854a4a01d76d447;p=public-inbox.git
diff --git a/t/watch_imap.t b/t/watch_imap.t
index 9433bb6f..eeda29eb 100644
--- a/t/watch_imap.t
+++ b/t/watch_imap.t
@@ -1,18 +1,18 @@
-# Copyright (C) 2020 all contributors
+# Copyright (C) 2020-2021 all contributors
# License: AGPL-3.0+
use strict;
use Test::More;
use PublicInbox::Config;
# see t/imapd*.t for tests against a live IMAP server
-use_ok 'PublicInbox::WatchMaildir';
+use_ok 'PublicInbox::Watch';
my $cfg = PublicInbox::Config->new(\<new($cfg);
+my $watch = PublicInbox::Watch->new($cfg);
is($watch->{imap}->{'imap://example.com/INBOX.a'}->[0]->{name}, 'i',
'watched an inbox');
is($watch->{imap}->{'imap://example.com/INBOX.spam'}, 'watchspam',