X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fv1-add-remove-add.t;h=fdf06a96e764dc98c828dc4aef33da0de0a75ea7;hb=d55abcc42bde846d9047491125dd2b32645dafd8;hp=736e414e354045b09bf97a5c1d106e6b052d4c9f;hpb=b3a04ae18a42ed960c89cc81c209633da6976380;p=public-inbox.git diff --git a/t/v1-add-remove-add.t b/t/v1-add-remove-add.t index 736e414e..fdf06a96 100644 --- a/t/v1-add-remove-add.t +++ b/t/v1-add-remove-add.t @@ -9,7 +9,6 @@ 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); my $ibx = { inboxdir => $inboxdir, name => 'test-add-remove-add', @@ -27,6 +26,7 @@ my $mime = PublicInbox::MIME->create( body => "hello world\n", ); my $im = PublicInbox::Import->new($ibx->git, undef, undef, $ibx); +$im->init_bare; ok($im->add($mime), 'message added'); ok($im->remove($mime), 'message removed'); ok($im->add($mime), 'message added again');