Skip to content

Commit bccd718

Browse files
committed
fix test
1 parent 8ad5fc3 commit bccd718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/server/fastmcp/test_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,9 @@ def prompt_fn(name: str) -> str:
10731073
with pytest.raises(McpError, match="Missing required arguments"):
10741074
await client.get_prompt("prompt_fn")
10751075

1076+
@pytest.mark.anyio
10761077
@pytest.mark.filterwarnings("ignore::DeprecationWarning:httpx")
1077-
def test_streamable_http_no_redirect(self):
1078+
async def test_streamable_http_no_redirect(self):
10781079
"""Test that /mcp endpoint does not cause 307 redirect (PR #1115)."""
10791080
from starlette.testclient import TestClient
10801081

0 commit comments

Comments
 (0)