diff options
Diffstat (limited to 't')
-rw-r--r-- | t/v2reindex.t | 3 | ||||
-rw-r--r-- | t/watch_maildir_v2.t | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/t/v2reindex.t b/t/v2reindex.t index 7c14117a..b6164ff8 100644 --- a/t/v2reindex.t +++ b/t/v2reindex.t @@ -18,12 +18,11 @@ my $ibx_config = { -primary_address => 'test@example.com', indexlevel => 'full', }; -my $agpl = eval { +my $agpl = do { open my $fh, '<', 'COPYING' or die "can't open COPYING: $!"; local $/; <$fh>; }; -$agpl or die "AGPL or die :P\n"; my $phrase = q("defending all users' freedom"); my $mime = PublicInbox::MIME->create( header => [ diff --git a/t/watch_maildir_v2.t b/t/watch_maildir_v2.t index b2514c16..685cd6ed 100644 --- a/t/watch_maildir_v2.t +++ b/t/watch_maildir_v2.t @@ -125,7 +125,7 @@ More majordomo info at http://vger.kernel.org/majordomo-info.html\n); { my $patch = 't/data/0001.patch'; open my $fh, '<', $patch or die "failed to open $patch: $!\n"; - $msg = eval { local $/; <$fh> }; + $msg = do { local $/; <$fh> }; PublicInbox::Emergency->new($maildir)->prepare(\$msg); PublicInbox::WatchMaildir->new($config)->scan('full'); my ($nr, $msgs) = $srch->reopen->query('dfpost:6e006fd7'); |