Fix Windows path handling in MCP external plugin tests#2634
Fix Windows path handling in MCP external plugin tests#2634crivetimihai merged 1 commit intoIBM:mainfrom
Conversation
6230ca2 to
b80fd96
Compare
|
Hi maintainers 👋 This PR fixes flaky behavior in MCP external plugin tests on Windows by making path comparisons OS agnostic. Thanks for your time and review! |
|
Hi @mintzo20, thanks for the contribution! The code changes look good — using One thing to clarify: the PR references issue #2521, but that issue is about different flaky tests (TTL expiration timing in Could you update the PR description to remove the "Closes #2521" reference? Once that's updated, this is good to merge. Thanks again! |
|
Thanks for pointing that out, you're right. I've removed the reference to issue #2521 from the PR description, since this change is specifically about Windows path handling in test_client_config.py. Appreciate the review! |
Signed-off-by: mintzo20 <adirmintz@gmail.com> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
b80fd96 to
99514f7
Compare
crivetimihai
left a comment
There was a problem hiding this comment.
Thank you. Rebased, tested, made some minor updates. Ready to merge!
Signed-off-by: mintzo20 <adirmintz@gmail.com> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> Signed-off-by: hughhennnelly <hughhennelly06@gmail.com>
Signed-off-by: mintzo20 <adirmintz@gmail.com> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
🔗 Related Issue
📝 Summary
Fixes flaky/unit test failures on Windows by making path assertions OS-agnostic.
Specifically, it normalizes script path comparisons using
pathlib.Pathand makesthe missing-script error assertion robust across platforms.
🏷️ Type of Change
🧪 Verification
python -m pytest tests/unit/mcpgateway/plugins/framework/external/mcp/test_client_config.py -q✅ Checklist
📓 Notes (optional)
Test-only change; no production code affected.