test_policy_IO_override from test.unit.proxy.test_server.TestObjectController randomly fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Mike Fedosin |
Bug Description
Sometimes I get this message from tox with "Finished: FAILURE" in the end.
15:12:46 =======
15:12:46 FAIL: test_policy_
15:12:46 -------
15:12:46 Traceback (most recent call last):
15:12:46 File "/home/
15:12:46 return f(*args, **kwargs)
15:12:46 File "/home/
15:12:46 self.assert_(now - 1 < float(e.timestamp) < now + 1)
15:12:46 AssertionError: False is not true
It always happens when my system is overloaded during the testing.
A quick look at the code showed that this test has a check:
try:
except DiskFileNotExist as e:
now = time.time()
else:
It seems that the code verifies that the exception's occurred and fails in the end if it's not. It's bad that the passage of this test is unpredictable and depends on the system load during the tests.
CVE References
Changed in swift: | |
assignee: | nobody → Mike Fedosin (mfedosin) |
Changed in swift: | |
status: | New → In Progress |
Changed in swift: | |
milestone: | none → 2.3.0-rc1 |
status: | Fix Committed → Fix Released |
Changed in swift: | |
milestone: | 2.3.0-rc1 → 2.3.0 |
https:/ /review. openstack. org/#/c/ 171593/