From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6ECF81FAF7 for ; Mon, 19 Mar 2018 08:15:03 +0000 (UTC) From: "Eric Wong (Contractor, The Linux Foundation)" To: meta@public-inbox.org Subject: [PATCH 16/27] v2writable: test for idempotent removals Date: Mon, 19 Mar 2018 08:14:48 +0000 Message-Id: <20180319081459.10645-17-e@80x24.org> In-Reply-To: <20180319081459.10645-1-e@80x24.org> References: <20180319081459.10645-1-e@80x24.org> List-Id: This will make reindexing easier. --- t/v2writable.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/v2writable.t b/t/v2writable.t index bbe6d14..5245a84 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -218,6 +218,11 @@ EOF } else { fail('failed to extract blob from log output'); } + is($im->remove($mime, 'test removal'), undef, + 'remove is idempotent'); + $im->done; + is($git0->qx(qw(log -1 --pretty=raw --raw -r --no-abbrev)), + $after, 'no git history made with idempotent remove'); } done_testing(); -- EW