Skip to content

Commit

Permalink
Use a threshold of 2 percent in volume size check (#313)
Browse files Browse the repository at this point in the history
There seems to be an issue calculating the expected size and the
actual size of the volume.  On some systems, the difference is
greater than 1% but less than 2%.  We are working on a better, more
reliable method of calculating the expected and actual sizes.  In
the meantime, make the threshold 2%.
  • Loading branch information
richm authored Dec 17, 2022
1 parent 3a03451 commit 9b5533e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-verify-volume-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@
var: storage_test_expected_size

- assert:
that: (storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.01
that: (storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.02
msg: "Volume {{ storage_test_volume.name }} has unexpected size (expected: {{ storage_test_expected_size|int }} / actual: {{ storage_test_actual_size.bytes }})"
when: _storage_test_volume_present and storage_test_volume.type == "lvm"

0 comments on commit 9b5533e

Please sign in to comment.