Actions
Refactor #743
closedunit.server.managers.schedule.test_utils.TestUpdate.test_update should not depend on wall clock timing
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
There is a unit test that fails periodically for me:
======================================================================
FAIL: test_update (unit.server.managers.schedule.test_utils.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/home/rbarlow/devel/pulp/server/test/unit/server/managers/schedule/test_utils.py", line 251, in test_update
self.assertTrue(time.time() - last_updated < .1)
AssertionError
----------------------------------------------------------------------
Ran 1912 tests in 71.563s
FAILED (failures=1)
I've had some trouble getting this particular test to pass over a few runs. My dev box is a VM on a system with several others running right now, and this seems to lend itself to timing problems with this test.
We should refactor this test to avoid depending on wall clock time, perhaps by using freezegun or mock.
Related issues
Updated by rbarlow about 9 years ago
I've run this tests three times in a row and it has failed every time.
Updated by cduryee about 9 years ago
- Related to Issue #729: Pulp tests should not rely on wall clock time added
Updated by cduryee about 9 years ago
- Related to deleted (Issue #729: Pulp tests should not rely on wall clock time)
Updated by cduryee about 9 years ago
- Is duplicate of Issue #729: Pulp tests should not rely on wall clock time added
Updated by bmbouter about 9 years ago
- Status changed from NEW to CLOSED - DUPLICATE
I moved the contents of this to #729 which will track the resolution of this more broadly.
Updated by bmbouter about 9 years ago
- Is duplicate of deleted (Issue #729: Pulp tests should not rely on wall clock time)
Updated by bmbouter about 9 years ago
- Is duplicate of Issue #729: Pulp tests should not rely on wall clock time added
Actions