Skip to content

Commit b0b5337

Browse files
committed
Merge branch 'jk/t5319-midx-corruption-test-deflake'
Test fix. * jk/t5319-midx-corruption-test-deflake: t5319: corrupt more bytes of the midx checksum
2 parents 9b0a970 + 152923b commit b0b5337

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t5319-multi-pack-index.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,10 @@ test_expect_success 'corrupt MIDX is not reused' '
482482
'
483483

484484
test_expect_success 'verify incorrect checksum' '
485-
pos=$(($(wc -c <$objdir/pack/multi-pack-index) - 1)) &&
486-
corrupt_midx_and_verify $pos "\377" $objdir "incorrect checksum"
485+
pos=$(($(wc -c <$objdir/pack/multi-pack-index) - 10)) &&
486+
corrupt_midx_and_verify $pos \
487+
"\377\377\377\377\377\377\377\377\377\377" \
488+
$objdir "incorrect checksum"
487489
'
488490

489491
test_expect_success 'repack progress off for redirected stderr' '

0 commit comments

Comments
 (0)