]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2writable.t
bundle Danga::Socket and Sys::Syscall
[public-inbox.git] / t / v2writable.t
index ec9f56d91657dbc50d5f97d72874075f8f6b4d3f..06b2251999f08ba0abf7d35035f1bdacac82d28f 100644 (file)
@@ -134,8 +134,8 @@ SKIP: {
        use Net::NNTP;
        use IO::Socket;
        use Socket qw(SO_KEEPALIVE IPPROTO_TCP TCP_NODELAY);
-       eval { require Danga::Socket };
-       skip "Danga::Socket missing $@", 2 if $@;
+       eval { require PublicInbox::DS };
+       skip "PublicInbox::DS missing $@", 2 if $@;
        my $err = "$mainrepo/stderr.log";
        my $out = "$mainrepo/stdout.log";
        my %opts = (
@@ -247,6 +247,9 @@ 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');
 }
 
 {