MCPcopy Create free account
hub / github.com/EvoMap/evolver / startStub

Function startStub

test/proxyOpenAIResponses.test.js:9–17  ·  view source on GitHub ↗
(handler)

Source from the content-addressed store, hash-verified

7const { EvoMapProxy, resolveOpenAIBaseUrl } = require('../src/proxy');
8
9function startStub(handler) {
10 return new Promise((resolve) => {
11 const server = http.createServer(handler);
12 server.listen(0, '127.0.0.1', () => {
13 const { port } = server.address();
14 resolve({ server, baseUrl: `http://127.0.0.1:${port}/v1` });
15 });
16 });
17}
18
19// Header-phase abort budget for the "does not abort an SSE stream" test. It must
20// comfortably exceed real header-arrival latency to the localhost stub — measured

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected