Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix flaky test test_response in test_streamable_http.py #1573

Copy link
Copy link
@maxisbey

Description

@maxisbey
Issue body actions

Initial Checks

Description

The test is flaky. See: https://github.com/modelcontextprotocol/python-sdk/actions/runs/19020904095/job/54315849330?pr=1565

Output:

basic_server = None, basic_server_url = 'http://127.0.0.1:50695/'

    def test_response(basic_server: None, basic_server_url: str):
        """Test response handling for a valid request."""
        mcp_url = f"{basic_server_url}/mcp"
        response = requests.post(
            mcp_url,
            headers={
                "Accept": "application/json, text/event-stream",
                "Content-Type": "application/json",
            },
            json=INIT_REQUEST,
        )
>       assert response.status_code == 200
E       assert 404 == 200
E        +  where 404 = <Response [404]>.status_code

tests/shared/test_streamable_http.py:624: AssertionError

Example Code

Python & MCP Python SDK

1.19.0
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Nice to haves, rare edge casesNice to haves, rare edge casesbugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.