Merge "Update directorySize check in TestZip64P7ZipRecords"
This commit is contained in:
4
third_party/zip/android_test.go
vendored
4
third_party/zip/android_test.go
vendored
@@ -190,7 +190,9 @@ func TestZip64P7ZipRecords(t *testing.T) {
|
||||
t.Errorf("wanted directoryRecords %d, got %d", w, g)
|
||||
}
|
||||
|
||||
if g, w := d.directorySize, uint64(uint32max); g != w {
|
||||
zip64ExtraBuf := 48 // 4x uint16 + 5x uint64
|
||||
expectedDirSize := directoryHeaderLen + zip64ExtraBuf + len("large") // name of header
|
||||
if g, w := d.directorySize, uint64(expectedDirSize); g != w {
|
||||
t.Errorf("wanted directorySize %d, got %d", w, g)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user