aboutsummaryrefslogtreecommitdiff
path: root/pack_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-15 00:00:00 +0000
committerGravatar Runxi Yu2025-11-15 00:00:00 +0000
commit6655e9f74eac800e26f57ebdb143111726e8b73d (patch)
treedb36fffb1dac361f0ca42023d747081fefaeb14f /pack_test.go
parentAdd initial support for multi pack indexes (diff)
signature
Use SHA-256 by default
Diffstat (limited to 'pack_test.go')
-rw-r--r--pack_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack_test.go b/pack_test.go
index 5661e322..1dae5d3a 100644
--- a/pack_test.go
+++ b/pack_test.go
@@ -183,7 +183,7 @@ func buildTestPackIndexBuffer(hash Hash, offset uint32) []byte {
off32 := make([]byte, 4)
binary.BigEndian.PutUint32(off32, offset)
buf.Write(off32)
- buf.Write(make([]byte, 40))
+ buf.Write(make([]byte, 2*HashSize))
return buf.Bytes()
}