fix: use close() instead of aclose()

This commit is contained in:
root 2026-03-29 21:52:52 +00:00
parent 4c98d27e72
commit bf44e3c47a
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ async def test_login_success(require_credentials):
assert client.token is not None
assert len(client.token) > 0
finally:
await client.aclose()
await client.close()
@pytest.mark.e2e
@ -37,12 +37,12 @@ async def test_restore_session(require_credentials):
username=require_credentials["username"], password=require_credentials["password"]
)
token = client1.token
await client1.aclose()
await client1.close()
# Restore from token
client2 = KworkClient(token=token)
try:
user = await client2.user.get_info()
assert user.username == require_credentials["username"]
assert user["username"] == require_credentials["username"]
finally:
await client2.aclose()
await client2.close()