mirror of https://github.com/MagicStack/uvloop.git
tests: Adjust test_call_later_1 to see why it fails on travis/mac
This commit is contained in:
parent
9104dfbaef
commit
d2f5d0c5db
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue