]> Sergey Matveev's repositories - public-inbox.git/commitdiff
v2writable: test for idempotent removals
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 19 Mar 2018 08:14:48 +0000 (08:14 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 19 Mar 2018 08:16:34 +0000 (08:16 +0000)
This will make reindexing easier.

t/v2writable.t

index bbe6d14b7fecf3e7720f3e37fe1835c65430fc87..5245a84b1fbcfaea56bfa63c1fe7e7c14b60298c 100644 (file)
@@ -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();