diff --git a/tests/test_cancellation.py b/tests/test_cancellation.py index 726ffd91e..9f8ae0d84 100644 --- a/tests/test_cancellation.py +++ b/tests/test_cancellation.py @@ -544,7 +544,7 @@ async def delayed_kbi(): await p.run(do_nuthin) finally: duration = time.time() - start - if duration > 1: + if duration > 2.9: raise trio.TooSlowError( 'daemon cancel was slower then necessary..' )