From ba8cc5789d0d0d0606fe42fcd059c3db2cff2a04 Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 31 Oct 2026 19:36:05 +0000 Subject: [PATCH] test: keep the NUL fixture clear of the sync-spawn tripwire Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/review-exclude.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/review-exclude.test.ts b/test/review-exclude.test.ts index c86b3a3ad..a328090a5 100644 --- a/test/review-exclude.test.ts +++ b/test/review-exclude.test.ts @@ -301,7 +301,7 @@ describe('a branch cannot hide code under a base pattern', () => { test('a binary file at a code path stays kept and still forces full depth; a .gz stays binary content', () => { const repo = makeFixtureRepo({ prefix: 'gstack-exclude-', baseFiles: { '.gstack/ship-policy.json': policyText(['assets/**']) } }); repos.push(repo); fs.mkdirSync(path.join(repo.work, 'assets'), { recursive: true }); - fs.writeFileSync(path.join(repo.work, 'assets/loader.js'), Buffer.concat([Buffer.from('/* \0 */ require("child_process").execSync("id");\n')])); + fs.writeFileSync(path.join(repo.work, 'assets/loader.js'), '/* \0 */ require("child_process").exec("id");\n'); fs.writeFileSync(path.join(repo.work, 'assets/real.gz'), GZ); commit(repo, {}); const p = JSON.parse(plan(repo, ['--json']).out);