Skip flaky windows test (#1596)

This commit is contained in:
Jeremiah Lowin 2025-08-23 09:43:01 -04:00 committed by GitHub
commit 6c51dad870
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -48,10 +48,10 @@ jobs:
run: uv sync --frozen
- name: Run tests (excluding integration and client_process)
run: uv run pytest tests -m "not integration and not client_process"
run: uv run pytest -v tests -m "not integration and not client_process"
- name: Run client process tests separately
run: uv run pytest tests -m "client_process" -x
run: uv run pytest -v tests -m "client_process" -x
run_integration_tests:
name: "Run integration tests"
@ -73,7 +73,7 @@ jobs:
run: uv sync --frozen
- name: Run integration tests
run: uv run pytest tests -m "integration"
run: uv run pytest -v tests -m "integration"
env:
FASTMCP_GITHUB_TOKEN: ${{ secrets.FASTMCP_GITHUB_TOKEN }}
FASTMCP_TEST_AUTH_GITHUB_CLIENT_ID: ${{ secrets.FASTMCP_TEST_AUTH_GITHUB_CLIENT_ID }}

View file

@ -309,6 +309,10 @@ async def test_multi_client_lifespan(tmp_path: Path):
await asyncio.sleep(0.1)
@pytest.mark.skipif(
sys.platform.startswith("win32"),
reason="Windows has process lifecycle issues",
)
async def test_multi_client_force_close(tmp_path: Path):
server_script = inspect.cleandoc("""
from fastmcp import FastMCP