X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fwatch_multiple_headers.t;h=33ed0770edd61180e4994f5a8e4de50461c7d764;hb=2f8d15b1170b137a0512a4f3163b236a5dcbf0b8;hp=a081353210275b4d38b5256f92c2dda3c85ea285;hpb=cee907599bb7eda0695ae91cf8d633670a88d6c7;p=public-inbox.git diff --git a/t/watch_multiple_headers.t b/t/watch_multiple_headers.t index a0813532..33ed0770 100644 --- a/t/watch_multiple_headers.t +++ b/t/watch_multiple_headers.t @@ -1,4 +1,4 @@ -# Copyright (C) 2020 all contributors +# Copyright (C) 2020-2021 all contributors # License: AGPL-3.0+ use strict; use Test::More; @@ -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::Watch->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');