diff --git a/tests/integration/test_scheduler_string_name_stress.py b/tests/integration/test_scheduler_string_name_stress.py index a51a915300..0e378a7b54 100644 --- a/tests/integration/test_scheduler_string_name_stress.py +++ b/tests/integration/test_scheduler_string_name_stress.py @@ -29,7 +29,7 @@ async def test_scheduler_string_name_stress( ) # Create a future to signal test completion - loop = asyncio.get_event_loop() + loop = asyncio.get_running_loop() test_complete_future: asyncio.Future[None] = loop.create_future() # Track executed callbacks and any crashes