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(view): retain cookie in disconnected-read proxy [N39,N26]

Corey Olson9b51fc86acb2
diff --git a/test/cockpit/fixture.test.js b/test/cockpit/fixture.test.js
index a0cc4f10..e3d9cdc3 100644
--- a/test/cockpit/fixture.test.js
+++ b/test/cockpit/fixture.test.js
@@ -378,7 +378,7 @@ test('view fixture retries one disconnected read with its cause and never repeat
const count = (calls.get(req.url) ?? 0) + 1;
calls.set(req.url, count);
if (req.url !== '/retry' || count === 1) return req.socket.destroy();
- const upstream = request(view.link, (answer) => {
+ const upstream = request(new URL('/', view.link), { headers: { cookie: view.cookie } }, (answer) => {
res.writeHead(answer.statusCode, answer.headers);
answer.pipe(res);
});