Skip to content

Commit

Permalink
fix test_disk_format.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed May 13, 2024
1 parent 06dab03 commit b43b4b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/api2/test_disk_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def test_disk_format(unused_disk):
assert partitions[0]['partition_type'] == DATA_TYPE_UUID

# Should be a modulo of grain_size
assert (partitions[0]['end_sector'] - partitions[0]['start_sector']) % grain_size == 0
assert partitions[0]['size'] % grain_size == 0
assert partitions[0]['start_sector'] % grain_size == 0

# Uses (almost) all the disk
assert partitions[0]['start_sector'] == first_sector
Expand Down

0 comments on commit b43b4b5

Please sign in to comment.