From 97d57d89b3d73978fea644b2d7d777f1190095c3 Mon Sep 17 00:00:00 2001 From: "Jarisch, Ferdinand" Date: Mon, 21 Oct 2024 14:27:17 +0200 Subject: [PATCH] chore(tests): Adapt expected outcome of timeout to recent changes --- tests/pytest/test_hsfz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytest/test_hsfz.py b/tests/pytest/test_hsfz.py index d5dec0c1b..d766f17ce 100644 --- a/tests/pytest/test_hsfz.py +++ b/tests/pytest/test_hsfz.py @@ -8,6 +8,7 @@ import pytest from gallia.services.uds.core.client import UDSClient +from gallia.services.uds.core.exception import MissingResponse from gallia.services.uds.core.service import PositiveResponse from gallia.transports.base import BaseTransport, TargetURI from gallia.transports.hsfz import HSFZConnection, HSFZTransport @@ -82,7 +83,7 @@ async def test_reconnect_after_powercycle(dummy_server: TCPServer) -> None: async def test_hsfz_timeout(transports: tuple[BaseTransport, BaseTransport]) -> None: hsfz_transport, _ = transports u = UDSClient(hsfz_transport, timeout=5) - with pytest.raises(BrokenPipeError): + with pytest.raises(MissingResponse): await u.read_data_by_identifier(0x1234)