Cleanup websession with new aiohttp ssl (#2861)

This commit is contained in:
Pascal Vizeli
2021-05-14 10:07:00 +02:00
committed by GitHub
parent 1ef46424ea
commit a5ed68b641
7 changed files with 10 additions and 27 deletions

View File

@@ -1,5 +1,4 @@
"""Common test functions."""
import asyncio
from pathlib import Path
import re
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch
@@ -164,9 +163,7 @@ async def coresys(loop, docker, network_manager, aiohttp_client) -> CoreSys:
yield coresys_obj
await asyncio.gather(
coresys_obj.websession.close(), coresys_obj.websession_ssl.close()
)
await coresys_obj.websession.close()
@pytest.fixture