MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / delayedCode

Function delayedCode

e2e/cloud/mcp-sse-replay.test.ts:202–207  ·  view source on GitHub ↗
(marker: string, delayMs: number)

Source from the content-addressed store, hash-verified

200};
201
202const delayedCode = (marker: string, delayMs: number): string =>
203 [
204 `const marker = ${JSON.stringify(marker)};`,
205 `await new Promise((resolve) => setTimeout(resolve, ${delayMs}));`,
206 "return marker;",
207 ].join("\n");
208
209scenario(
210 "MCP streamable HTTP · POST response abort is replayed on the next GET stream",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected