diff options
| author | bd <bdunahu@operationnull.com> | 2025-06-10 16:05:01 -0400 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-06-10 16:05:01 -0400 |
| commit | f7c41ef8bb7993d09aa54cd9b3773a55a662ffb2 (patch) | |
| tree | 30c9440f1cb5df7f0e02a74f4d69f8276e0ed128 /tests/overload.py | |
| parent | 669534099639907a0813b6c66b29e9d1ca95229e (diff) | |
Move disabling signals to own method
Diffstat (limited to 'tests/overload.py')
| -rw-r--r-- | tests/overload.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/overload.py b/tests/overload.py index 21ee125..9bba9a1 100644 --- a/tests/overload.py +++ b/tests/overload.py @@ -2,6 +2,9 @@ import asyncio import time async def busy_task(): + i = 0 + while i < 100: + i += 1 await asyncio.sleep(3.0) return 1 @@ -14,7 +17,7 @@ async def main(): # which makes the python intepreter not respond to # mini-scalene / SCALENE while True: - if time.time() - start_time > 3.5: + if time.time() - start_time > 4.0: break # print(asyncio.all_tasks()) await asyncio.sleep(0) # yield |
