]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2writable.t
index: warn with info about the message as context
[public-inbox.git] / t / v2writable.t
index ec9f56d91657dbc50d5f97d72874075f8f6b4d3f..2826513b0d66057669408f65df02cf5657944df5 100644 (file)
@@ -247,13 +247,15 @@ EOF
        ok(my $cmts = $im->purge($mime), 'purged message');
        like($cmts->[0], qr/\A[a-f0-9]{40}\z/, 'purge returned current commit');
        $im->done;
+
+       # again
+       is($im->purge($mime), undef, 'no-op returns undef');
 }
 
 {
-       my @warn;
        my $x = 'x'x250;
        my $y = 'y'x250;
-       local $SIG{__WARN__} = sub { push @warn, @_ };
+       local $SIG{__WARN__} = sub {};
        $mime->header_set('Subject', 'long mid');
        $mime->header_set('Message-ID', "<$x>");
        ok($im->add($mime), 'add excessively long Message-ID');