Skip to content

Commit

Permalink
Add better error messages for test failures
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Aug 8, 2024
1 parent 1b1742d commit 1111b29
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/client-dbus/tests/udev/test_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,14 @@ def _check_prediction(self, prediction, mopool):
prediction["total"],
)

self.assertEqual(mopool.TotalPhysicalSize(), total_prediction)
self.assertEqual(total_physical_used, used_prediction)
self.assertEqual(
mopool.TotalPhysicalSize(),
total_prediction,
msg=f"Predicted sizes: {prediction}",
)
self.assertEqual(
total_physical_used, used_prediction, msg=f"Predicted sizes: {prediction}"
)

def _test_prediction(self, pool_name, *, fs_specs=None, overprovision=True):
"""
Expand Down

0 comments on commit 1111b29

Please sign in to comment.