Skip to content

Commit 91f6c24

Browse files
committed
test(mcp): drop unused harness export and brace the close executor
1 parent ad417b2 commit 91f6c24

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/agents/mcp-oauth.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ async function startAuthorizationServer(port: number) {
121121
});
122122
return {
123123
issuer,
124-
close: () => new Promise<void>((resolve) => server.close(() => resolve())),
124+
close: () =>
125+
new Promise<void>((resolve) => {
126+
server.close(() => resolve());
127+
}),
125128
};
126129
}
127130

‎src/cli/mcp-cli.test-harness.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export const serveOpenClawChannelMcp = mocks.serveOpenClawChannelMcp;
3636
export const clearMcpOAuthCredentials = mocks.clearMcpOAuthCredentials;
3737
export const completeMcpOAuthAuthorization = mocks.completeMcpOAuthAuthorization;
3838
export const readMcpOAuthCredentialsStatus = mocks.readMcpOAuthCredentialsStatus;
39-
export const startMcpOAuthAuthorization = mocks.startMcpOAuthAuthorization;
4039

4140
vi.mock("../runtime.js", () => ({
4241
defaultRuntime: mocks.runtime,

0 commit comments

Comments
 (0)