Skip to content

Commit 3b9e4dd

Browse files
avargitster
authored andcommitted
mktag tests: run "fsck" after creating "mytag"
Change the last test in the file to run an "fsck --strict" after creating the tag at the end. We're just doing this for good measure to check that fsck behaves as expected now that there's finally a reference for our valid tag. Other tests going to be checking this elsewhere, but it's nice to cover all the edge cases in this test to make it as self-contained as possible. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5c2303e commit 3b9e4dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t3800-mktag.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ EOF
350350

351351
test_expect_success 'create valid tag' '
352352
git mktag <tag.sig >hash &&
353-
git update-ref refs/tags/mytag $(cat hash) $(test_oid zero)
353+
git update-ref refs/tags/mytag $(cat hash) $(test_oid zero) &&
354+
git fsck --strict
354355
'
355356

356357
test_done

0 commit comments

Comments
 (0)