X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fv1-add-remove-add.t;h=736e414e354045b09bf97a5c1d106e6b052d4c9f;hb=b3f81ce0c71d5d4eca347f259b5ae69660a2cb13;hp=13e9f29ce95eb68b900e1aa044605e62f67a3180;hpb=ad6f26f3b9f0e428020d05667987556f8fcbec2f;p=public-inbox.git diff --git a/t/v1-add-remove-add.t b/t/v1-add-remove-add.t index 13e9f29c..736e414e 100644 --- a/t/v1-add-remove-add.t +++ b/t/v1-add-remove-add.t @@ -1,16 +1,12 @@ -# Copyright (C) 2018-2019 all contributors +# Copyright (C) 2018-2020 all contributors # License: AGPL-3.0+ 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);