Project

Profile

Help

Issue #1615

closed

The unit test client.commands.test_polling.PollingCommandTests.test_poll_single_task is non-deterministic

Added by rbarlow over 8 years ago. Updated about 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

This unit test occasionally fails on different platforms. I've seen it fail in one run on F23, and in another run F23 passed by RHEL 6 failed. It happens often enough that it is a problem. Here is the traceback from Jenkies:

Traceback (most recent call last):
  File "/usr/lib64/python2.6/unittest.py", line 278, in run
    testMethod()
  File "/home/jenkins/.virtualenvs/test/lib/python2.6/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/workspace/unittest-pulp-pr/node-type/rhel6-np/pulp/client_lib/test/unit/client/commands/test_polling.py", line 69, in test_poll_single_task
    self.assertEqual(4, mock_sleep.call_count)  # 2 for waiting, 2 for running
  File "/usr/lib64/python2.6/unittest.py", line 349, in failUnlessEqual
    (msg or '%r != %r' % (first, second))
AssertionError: 4 != 591

Also available in: Atom PDF