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): local-origin stand-in skips dropped requests [N26]

Corey Olsonc19c184db15f
diff --git a/test/cockpit/local-origin.test.js b/test/cockpit/local-origin.test.js
index 3d7a189b..242285d5 100644
--- a/test/cockpit/local-origin.test.js
+++ b/test/cockpit/local-origin.test.js
@@ -134,7 +134,11 @@ async function hostedStandIn(chrome, pages, styles, local) {
],
body: Buffer.from(document ? page : asset ?? styles).toString('base64'),
});
- })().catch((error) => failures.push(`${asked.url} (${resourceType}, ${requestId}): ${error.message}`)));
+ })().catch((error) => {
+ // A reply that comes after the page stopped waiting, because it moved to its next visit, has nowhere to go: Chrome
+ // dropped that request. It is not a failure; any other error still is (#834, as in open-board's stand-in, #829).
+ if (!/Invalid InterceptionId/u.test(error.message)) failures.push(`${asked.url} (${resourceType}, ${requestId}): ${error.message}`);
+ }));
};
chrome.socket.addEventListener('message', listener);
await chrome.send('Fetch.enable', { patterns: [{ urlPattern: HOSTED + '/*', requestStage: 'Request' }, { urlPattern: LOCAL + '/*', requestStage: 'Request' }, { urlPattern: local.own + '/api/v1/boards/*/state*', requestStage: 'Request' }] });