Skip to content

Commit 35872d7

Browse files
committed
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
1 parent f65b691 commit 35872d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_jobqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_error(self):
152152
self.assertEqual(2, self.result)
153153

154154
def test_jobs_tuple(self):
155-
155+
self.jq.stop()
156156
jobs = tuple(Job(self.job1, t) for t in range(5, 25))
157157

158158
for job in jobs:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy