Skip to content

Commit e02e84c

Browse files
committed
Fix tests
1 parent 54ccc65 commit e02e84c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/server/request_handlers/test_jsonrpc_handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,9 @@ async def streaming_coro():
703703
collected_events: list[Any] = []
704704
async for event in response:
705705
collected_events.append(event)
706-
assert len(collected_events) == len(events)
706+
assert (
707+
len(collected_events) == len(events) + 1
708+
) # First event is task itself
707709
assert mock_task.history is not None and len(mock_task.history) == 0
708710

709711
async def test_on_subscribe_no_existing_task_error(self) -> None:

0 commit comments

Comments
 (0)