]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v1-add-remove-add.t
t/v*-add-remove-add: fix typo in description of 'removed' check
[public-inbox.git] / t / v1-add-remove-add.t
index 13e9f29ce95eb68b900e1aa044605e62f67a3180..736e414e354045b09bf97a5c1d106e6b052d4c9f 100644 (file)
@@ -1,16 +1,12 @@
-# Copyright (C) 2018-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2018-2020 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
 use Test::More;
 use PublicInbox::MIME;
 use PublicInbox::Import;
-require './t/common.perl';
-
-foreach my $mod (qw(DBD::SQLite Search::Xapian)) {
-       eval "require $mod";
-       plan skip_all => "$mod missing for v1-add-remove-add.t" if $@;
-}
+use PublicInbox::TestCommon;
+require_mods(qw(DBD::SQLite Search::Xapian));
 require PublicInbox::SearchIdx;
 my ($inboxdir, $for_destroy) = tmpdir();
 is(system(qw(git init --bare -q), $inboxdir), 0);
@@ -32,7 +28,7 @@ my $mime = PublicInbox::MIME->create(
 );
 my $im = PublicInbox::Import->new($ibx->git, undef, undef, $ibx);
 ok($im->add($mime), 'message added');
-ok($im->remove($mime), 'message added');
+ok($im->remove($mime), 'message removed');
 ok($im->add($mime), 'message added again');
 $im->done;
 my $rw = PublicInbox::SearchIdx->new($ibx, 1);