fastmcp/tests/client
marvin-context-protocol[bot] 2954b69274 Fix stdio transport race condition in concurrent connections
- Fix race condition in StdioTransport.connect() where concurrent calls would fail
- Previously, if connect() was called while another connection was in progress,
  it would return None immediately instead of waiting for completion
- Now concurrent calls wait for the existing connection to complete
- Add comprehensive test for concurrent stdio transport connections
- Resolves issue where parallel calls resulted in 'Received request before
  initialization was complete' errors

Fixes #1625

Co-authored-by: Jeremiah Lowin <jlowin@users.noreply.github.com>
2025-08-25 17:33:12 +00:00
..
auth Remove trailing slash in unit tests (#1535) 2025-08-18 08:10:46 -04:00
transports Add UV Transport (#1270) 2025-07-28 15:41:36 -04:00
__init__.py clean up test inits 2025-05-31 19:32:08 -04:00
test_client.py Ensure validation errors are raised when masked (#1330) 2025-08-01 17:06:27 -04:00
test_elicitation.py switch from pyright to ty (#1545) 2025-08-19 17:22:52 -04:00
test_logs.py Fix client-side logging bug #1394 (#1397) 2025-08-08 11:37:10 -04:00
test_notifications.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_openapi_experimental.py Improve redirect handling to address 307's (#1387) 2025-08-08 11:55:30 -04:00
test_openapi_legacy.py Improve redirect handling to address 307's (#1387) 2025-08-08 11:55:30 -04:00
test_progress.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_roots.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_sampling.py Fallback to a Completions API when Sampling is not available (#1145) 2025-08-21 07:49:29 -04:00
test_sse.py Remove trailing slash in unit tests (#1535) 2025-08-18 08:10:46 -04:00
test_stdio.py Improve stdio and mcp_config clean-up (#1444) 2025-08-15 11:03:44 -04:00
test_stdio_concurrent_fix.py Fix stdio transport race condition in concurrent connections 2025-08-25 17:33:12 +00:00
test_streamable_http.py Improve redirect handling to address 307's (#1387) 2025-08-08 11:55:30 -04:00