mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-07 19:30:22 -05:00
Better testing for journal corruption
This commit is contained in:
@@ -243,7 +243,7 @@ func (s journalChunkSource) iterateAllChunks(ctx context.Context, cb func(chunks
|
||||
return true
|
||||
}
|
||||
|
||||
// We only have 16bytes of the hash. The value returned here will have 4 0x00 bytes at the end.
|
||||
// We only have 16 bytes of the hash. The value returned here will have 4 0x00 bytes at the end.
|
||||
var h hash.Hash
|
||||
copy(h[:], a16[:])
|
||||
|
||||
|
||||
BIN
Binary file not shown.
@@ -78,5 +78,5 @@ make_updates() {
|
||||
|
||||
run dolt fsck
|
||||
[ "$status" -eq 1 ]
|
||||
[[ "$output" =~ "Chunk: 7i48kt4h41hcjniri7scv5m8a69cdn13 load failed with error: checksum error" ]] || false
|
||||
[[ "$output" =~ "Chunk: 7i48kt4h41hcjniri7scv5m8a69cdn13 content hash mismatch: hitg0bb0hsakip96qvu2hts0hkrrla9o" ]] || false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user