tests: Adjust test_call_later_1 to see why it fails on travis/mac

This commit is contained in:
Yury Selivanov 2016-08-02 18:47:27 -04:00
parent 9104dfbaef
commit d2f5d0c5db
1 changed files with 3 additions and 4 deletions

View File

@ -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.