From 75c6662f3534f82bdb8540bb1791b497275b38e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 28 Feb 2016 02:11:48 +0100 Subject: [PATCH] leverage timing a bit more --- tests/test_jobqueue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_jobqueue.py b/tests/test_jobqueue.py index c3562f621..f90637ce4 100644 --- a/tests/test_jobqueue.py +++ b/tests/test_jobqueue.py @@ -104,11 +104,11 @@ class JobQueueTest(BaseTest, unittest.TestCase): def test_inUpdater(self): u = Updater(bot="MockBot", job_queue_tick_interval=0.005) - u.job_queue.put(self.job1, 0.11) - sleep(0.2) + u.job_queue.put(self.job1, 0.5) + sleep(0.75) self.assertEqual(1, self.result) u.stop() - sleep(0.4) + sleep(2) self.assertEqual(1, self.result) if __name__ == '__main__':