Skip to content

Commit d81476f

Browse files
committed
test(server): remove invalid session owner seed
1 parent 59dd083 commit d81476f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/server/test_streamable_http_manager.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
import logging
55
from collections.abc import Iterator
6-
from typing import Any, cast
6+
from typing import Any
77
from unittest.mock import AsyncMock, patch
88

99
import anyio
@@ -289,10 +289,6 @@ async def mock_receive():
289289

290290
assert session_id is not None, "Session ID not found in response headers"
291291

292-
# Seed the owner registry so this assertion verifies that the cleanup path
293-
# removes the session owner as well as the server instance.
294-
manager._session_owners[session_id] = cast(Any, None)
295-
296292
mock_serve.assert_called_once()
297293

298294
# At this point, mock_serve has completed, and the finally block in

0 commit comments

Comments
 (0)