test_jobqueue: fix test_jobs_tuple()

this test was based on timing and assumed that the JobQueue did not have
time to start processing the queue before checking the assert.
what we really should do is make sure JobQueue does not process anything
This commit is contained in:
Noam Meltzer 2016-06-22 01:46:29 +03:00
parent f65b6911ea
commit 35872d7a8b

View file

@ -152,7 +152,7 @@ class JobQueueTest(BaseTest, unittest.TestCase):
self.assertEqual(2, self.result)
def test_jobs_tuple(self):
self.jq.stop()
jobs = tuple(Job(self.job1, t) for t in range(5, 25))
for job in jobs: