fix(test_activities): Use aclose for async mock shutdown

This commit is contained in:
Bruno Domingues
2026-08-04 14:43:15 -03:00
parent acd925cf2a
commit 35efb67c89

View File

@@ -173,7 +173,7 @@ async def test_shutdown(
mock_mlflow_init,
mock_storage_init,
):
mock_opc_init.close = AsyncMock()
mock_opc_init.aclose = AsyncMock()
postgres_config = {
'host': 'localhost',
'port': 5432,
@@ -221,7 +221,7 @@ async def test_shutdown(
)
await activities.shutdown()
mock_opc_init.close.assert_called_once()
mock_opc_init.aclose.assert_called_once()
mock_storage_init.close.assert_called_once()
mock_mlflow_init.close.assert_called_once()
mock_gates_init.close.assert_called_once()