From e6b4e54bea513bf8e99114036103cdffab5ede41 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 19 Feb 2022 20:00:57 -0500 Subject: [PATCH] tests: fix the server pending tasks tests Signed-off-by: Eric Callahan --- tests/test_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_server.py b/tests/test_server.py index 386b4a3..27d15c5 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -93,7 +93,7 @@ class TestInstantiation: def test_pending_tasks(self, base_server: Server): loop = base_server.get_event_loop().aioloop - assert len(loop._ready) == 0 + assert len(asyncio.all_tasks(loop)) == 0 def test_klippy_info(self, base_server: Server): assert base_server.get_klippy_info() == {} @@ -212,7 +212,7 @@ class TestCoreServer: def test_pending_tasks(self, core_server: Server): loop = core_server.get_event_loop().aioloop - assert len(loop._ready) == 0 + assert len(asyncio.all_tasks(loop)) == 0 def test_register_component_fail(self, core_server: Server): with pytest.raises(ServerError):