X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fwatch_multiple_headers.t;h=1fe392d48a25faef09a474e72533922f3bb7805d;hp=a081353210275b4d38b5256f92c2dda3c85ea285;hb=0d38f65c490466837ae091afa7a7b6f59d04ce7c;hpb=416d1c3f6d5e5a857760ffc1b679e86a070bdbd4 diff --git a/t/watch_multiple_headers.t b/t/watch_multiple_headers.t index a0813532..1fe392d4 100644 --- a/t/watch_multiple_headers.t +++ b/t/watch_multiple_headers.t @@ -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');