Skip to content

Commit 00340ac

Browse files
committed
merge with recent branch
1 parent 6592391 commit 00340ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/shared/test_session_notifications.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ async def test_send_notification_discards_when_stream_closed() -> None:
3434
original_write_stream = session._write_stream
3535
session._write_stream = BrokenSendStream(anyio.BrokenResourceError()) # type: ignore[assignment]
3636

37-
notification = types.LoggingMessageNotification(
38-
params=types.LoggingMessageNotificationParams(level="info", data="message"),
37+
notification = types.ServerNotification(
38+
types.LoggingMessageNotification(
39+
params=types.LoggingMessageNotificationParams(level="info", data="message"),
40+
)
3941
)
4042

4143
await session.send_notification(notification, related_request_id=7)

0 commit comments

Comments
 (0)