test(mcp): count both plain-route observations in the request-target regression

The previous commit added a second successful route call to the regression
but left the single-observation assertion in place.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Edgar ArakelyanandClaude Fable 5.1 committed 2026-10-18 12:39:48 -07:00
1 parent d6b3b67458
commit 10daa522e0
1 file changed
+2 -1
+2 -1
View File
@@ -668,7 +668,8 @@ it("keeps a network-path request target as a path and refuses absolute-form targ
expect((await rawTargetRequest(url, "/card?x=1")).status).toBe(200);
const plain = await rawTargetRequest(url, "/card");
expect(plain.status).toBe(200);
expect(seen).toEqual([`127.0.0.1:${url.port}`]);
// Both successful route calls saw only the bound host, never the attacker-selected one.
expect(seen).toEqual([`127.0.0.1:${url.port}`, `127.0.0.1:${url.port}`]);
});
it("lets only a lone initialize replace a session, not a batch that carries one", async () => {