test(coding-agent): updated mcp profile auth binding tests

- Added AbortSignal expectation to auth binding test assertions.
This commit is contained in:
can1357
2026-07-11 00:13:49 +02:00
parent 531880c620
commit 3e90576228
@@ -202,7 +202,7 @@ describe("per-profile MCP OAuth binding", () => {
"embedded-client",
"embedded-secret",
SERVER_URL,
{ authorizationUrl: undefined, stripSameOriginResource: true },
{ authorizationUrl: undefined, stripSameOriginResource: true, signal: expect.any(AbortSignal) },
);
expect(authorizationHeader(prepared)).toBe("Bearer fresh-token");
// Embedded refresh material must survive rotation, or the *next* refresh
@@ -315,7 +315,7 @@ describe("per-profile MCP OAuth binding", () => {
"my-dcr-client",
undefined,
SERVER_URL,
{ authorizationUrl: undefined, stripSameOriginResource: true },
{ authorizationUrl: undefined, stripSameOriginResource: true, signal: expect.any(AbortSignal) },
);
expect(authorizationHeader(prepared)).toBe("Bearer fresh-token");
});