From 35872d7a8b718a4247ba6c6de926ea87b8ee8b26 Mon Sep 17 00:00:00 2001 From: Noam Meltzer Date: Wed, 22 Jun 2016 01:46:29 +0300 Subject: [PATCH] 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 --- tests/test_jobqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_jobqueue.py b/tests/test_jobqueue.py index 254668670..bdfb602fb 100644 --- a/tests/test_jobqueue.py +++ b/tests/test_jobqueue.py @@ -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: