From d2f5d0c5dbb6ab04af8ecdf2239a40f8a9abec6c Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 2 Aug 2016 18:47:27 -0400 Subject: [PATCH] tests: Adjust test_call_later_1 to see why it fails on travis/mac --- tests/test_base.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_base.py b/tests/test_base.py index dc02357..6bc86dc 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -138,13 +138,12 @@ class _TestBase: self.loop.run_forever() finished = time.monotonic() + self.assertEqual(calls, [10, 1]) + self.assertFalse(self.loop.is_running()) + self.assertLess(finished - started, 0.1) self.assertGreater(finished - started, 0.04) - self.assertEqual(calls, [10, 1]) - - self.assertFalse(self.loop.is_running()) - def test_call_later_2(self): # Test that loop.call_later triggers an update of # libuv cached time.