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.

fix(test): accept either pipe error [C7]

Corey Olsone67ae5a2b0ae
diff --git a/test/release-archive.test.js b/test/release-archive.test.js
index 36a6b514..09f1a096 100644
--- a/test/release-archive.test.js
+++ b/test/release-archive.test.js
@@ -29,7 +29,9 @@ test('an old release unpacks even when tar stops reading early [C7]', t => {
cwd: ROOT, env: { ...process.env, PATH: `${stub}${delimiter}${process.env.PATH ?? ''}` },
input: archive.stdout, encoding: 'utf8',
});
- assert.equal(oldPipeline.error?.code, 'EPIPE', 'the stdin-piping form breaks when tar exits after one block');
+ const pipeErrorCode = oldPipeline.error?.code;
+ assert.ok(['EPIPE', 'ENOTCONN'].includes(pipeErrorCode),
+ `the stdin-piping form breaks when tar exits after one block (got ${pipeErrorCode ?? 'no error'})`);
const path = process.env.PATH;
process.env.PATH = `${stub}${delimiter}${path ?? ''}`;