mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 10:50:21 -04:00
Merge pull request #7252 from puetzk/test_size_on_disk_accurate-flush-1.2
[1.2-maint] Fix test_size_on_disk_accurate for large st_blksize, fixes #7250
This commit is contained in:
commit
1dcaa74788
1 changed files with 3 additions and 3 deletions
|
|
@ -196,9 +196,9 @@ class HashIndexSizeTestCase(BaseTestCase):
|
|||
idx = ChunkIndex()
|
||||
for i in range(1234):
|
||||
idx[H(i)] = i, i**2, i**3
|
||||
with tempfile.NamedTemporaryFile() as file:
|
||||
idx.write(file)
|
||||
size = os.path.getsize(file.fileno())
|
||||
with unopened_tempfile() as filepath:
|
||||
idx.write(filepath)
|
||||
size = os.path.getsize(filepath)
|
||||
assert idx.size() == size
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue