debian-forge-composer/internal/disk
Christian Kellner 6db5a7d6a8 disk: fix order of expected size in test
The method assert.GreaterOrEqual(t, a, b) asserts that a >= b,
but the arguments were (expected, actual), which is the wrong
way around since we want to assure that the actual size is at
least the expected size, i.e. actual >= expected and thus the
argument should be (actual, expected).

The partition table size (pt.Size) is in sectors while our checks and
customizations are in bytes, so we need to convert when comparing.

Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
2022-02-22 19:23:41 +00:00
..
customizations.go disk: ability to grow existing partitions 2022-02-22 19:23:41 +00:00
disk.go disk: add EnsureSize helper 2022-02-22 19:23:41 +00:00
disk_test.go disk: fix order of expected size in test 2022-02-22 19:23:41 +00:00