Skip to content

Commit

Permalink
chore(tests): Adapt expected outcome of timeout to recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch committed Oct 23, 2024
1 parent 0057bcb commit bfde863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pytest/test_hsfz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit bfde863

Please sign in to comment.