tests: fix the server pending tasks tests

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-02-19 20:00:57 -05:00
parent 6946f67dbf
commit e6b4e54bea
1 changed files with 2 additions and 2 deletions

View File

@ -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):