diff --git a/tests/integration/test_scheduler_string_lifetime.py b/tests/integration/test_scheduler_string_lifetime.py index 720b75fd40..e985e107ec 100644 --- a/tests/integration/test_scheduler_string_lifetime.py +++ b/tests/integration/test_scheduler_string_lifetime.py @@ -29,7 +29,7 @@ async def test_scheduler_string_lifetime( ) # 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 test progress