Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(api): isolate requests from expired fixture sockets [A2]

Corey Olsona286b96e46b9
diff --git a/test/api.test.js b/test/api.test.js
index d57d6aed..f2842078 100644
--- a/test/api.test.js
+++ b/test/api.test.js
@@ -925,7 +925,7 @@ async function startApi(t, box) {
/** Send one bounded HTTP request to the fixture API, authenticating by header unless overridden. */
function apiFetch(api, path, options = {}) {
const { noSecret = false, ...requestOptions } = options;
- const headers = { ...(noSecret ? {} : { 'x-pullboard-key': api.secret }), ...requestOptions.headers };
+ const headers = { connection: 'close', ...(noSecret ? {} : { 'x-pullboard-key': api.secret }), ...requestOptions.headers };
return fetch(new URL(path, api.origin), { ...requestOptions, headers, signal: requestOptions.signal ?? AbortSignal.timeout(10_000) });
}