Skip to content

Commit

Permalink
Merge pull request #279 from mulkieran/verify-integrity-rounding
Browse files Browse the repository at this point in the history
Verify integrity metadata allocation is rounded
  • Loading branch information
mulkieran authored Aug 13, 2024
2 parents a8ea927 + 66dc719 commit 077bd8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ def _check_integrity_meta_allocs(self, metadata):
self.assertGreater(len(integrity_meta_allocs), 0)

for alloc in integrity_meta_allocs:
self.assertGreater(alloc[0], 0)
self.assertGreater(alloc[1], 0)
start, length = Range(alloc[0], 512), Range(alloc[1], 512)
self.assertGreater(start, Range(0))
self.assertEqual(length % Range(8, 512), Range(0))

def run_check(self, stop_time):
"""
Expand Down

0 comments on commit 077bd8e

Please sign in to comment.