Project

Profile

Help

Issue #1679

closed

unit.server.async.test_scheduler.TestCeleryProcessTimeoutMonitorRun.test_sleeps is non-deterministic

Added by rbarlow about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The unit.server.async.test_scheduler.TestCeleryProcessTimeoutMonitorRun.test_sleeps test can occasionally fail if the timing is off:

  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/home/jenkins/.virtualenvs/test/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/workspace/unittest-pulp-pr/node-type/f23-np/pulp/server/test/unit/server/async/test_scheduler.py", line 406, in test_sleeps
    mock_sleep.assert_called_once_with(60)
  File "/home/jenkins/.virtualenvs/test/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with
    raise AssertionError(msg)
'Expected to be called once. Called 2 times.\n-------------------- >> begin captured logging << --------------------\npulp.server.async.scheduler: INFO: Worker Timeout Monitor Started\n--------------------- >> end captured logging << ---------------------'

Also available in: Atom PDF