mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
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:
parent
f65b6911ea
commit
35872d7a8b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue