Repository navigation
test: harden the client-hosted MCP tests - #955
Merged
Merged
Conversation
This was referenced Nov 17, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
What does this PR do?
It works through the client-hosted MCP test follow-ups from the reviews of #529. It is tests only: no production code changes.
Support/asLoopbackUpgradeListener, pertesting-style.md§1. Its own tests move with it.IsEqualTo(caller.Token). Three tests are renamed to say what they check. A check repeated identically in four parameterized rows becomes one test of its own.IsCompleted, twoIsCompletedchecks on always-completed dispatch tasks, and aWhenAllon them.WebSocketFactory. A regression that fails the upgrade before the request now fails at the oracle instead of waiting for the runner's timeout. No production seam was added.Locktype's ownEnter()/Exit(), so .NET Framework no longer depends on the downlevel lock being built onMonitor.HangGuard.Bound.Related Issue(s):
🔄 Type of Change
🎯 Protocol & API Surface
spec/) is untouchedexternal/was hand-edited🧪 Testing
Mutation proofs, through a bounded runner that restores the source byte for byte. Each mutant is killed at its oracle on net10.0, net11.0 and net472:
Expected to be the same reference)collection has 0 items but expected 2)Items of #938 settled without a code change:
ClientMcpDispatchTestsstays. It backs the check that completed responses leave the dispatcher's outstanding list, so that list stays bounded. No existing surface can observe that removal, and adding one would be production surface for tests only. A rename fails loudly at run time:GetFieldreturns null and the dereference throws. A one-line comment at the read says so.isErrortext answer, not a crash.✅ Completion Gate
quality-gates.mdpasses on the head rebased ontomaster: whitespace, format/style, clones, slopwatch, the release build, all test projects, the API snapshots,generate --verify, the fixed point, Extensions and Native AOT.✅ Code Quality Checklist
🔍 Additional Notes
Breaking Changes: none. Dependencies: none. CHANGELOG: none; tests only.