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.