Skip to content

Commit d018e84

Browse files
committed
fix: update ntfy adapter test to expect re-raised error
1 parent 2f05f40 commit d018e84

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/unit/notifications/test_ntfy_adapter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@ async def test_send_handles_server_error_gracefully(self) -> None:
7979
title="Test",
8080
source="test",
8181
)
82-
# Should not raise
83-
await sink.send(n)
82+
# Adapter logs the error and re-raises for the dispatcher to track
83+
with pytest.raises(Exception, match="500"):
84+
await sink.send(n)

0 commit comments

Comments
 (0)