trivial: tests: add failure context to flakey assertion

An object server unit test was seen to fail returning a 409 when a 204
was expected. I cannot see the bug, so this patch adds some failure
context to add illumination if/when it fails again.

Change-Id: I45327cb5a56a87b8f6b9e971232fdce3b3f4bcb8
Related-Bug: #2131684
Signed-off-by: Alistair Coles <alistairncoles@gmail.com>
This commit is contained in:
Alistair Coles
2025-11-17 16:37:45 +00:00
parent 5f89d14ebb
commit affdbf71aa

View File

@@ -5614,7 +5614,8 @@ class TestObjectController(BaseTestCase):
environ={'REQUEST_METHOD': 'DELETE'},
headers={'X-Timestamp': timestamp.internal})
resp = req.get_response(self.object_controller)
self.assertEqual(resp.status_int, 204)
self.assertEqual(resp.status_int, 204,
(start, orig_timestamp, timestamp))
objfile = os.path.join(
self.testdir, 'sda1',
storage_directory(diskfile.get_data_dir(POLICIES[0]), 'p',