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

Function slowAfterFirst

apps/cloud/src/auth/jwks-cache.node.test.ts:329–332  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

327 const harness = makeFetchHarness([kp.publicJwk]);
328 let hang = false;
329 const slowAfterFirst: typeof globalThis.fetch = async (...args) => {
330 if (hang) await new Promise((r) => setTimeout(r, 5_000));
331 return harness.fetch(...args);
332 };
333
334 const jwks = createCachedRemoteJWKSet(jwksUrl, {
335 fetch: slowAfterFirst,

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.65

Tested by

no test coverage detected