From baf1a560fd6b80ba89eec1a4e84a2c6a71945cd9 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sun, 26 Jul 2026 05:19:20 -0400 Subject: [PATCH] test: surface validator cleanup failures Use force-only removal for the generated validator wrapper so an unwritten file is harmless while real cleanup errors still fail the test. --- tests/ci/validate-agents-tools.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/validate-agents-tools.test.js b/tests/ci/validate-agents-tools.test.js index d2f276281..13742459b 100644 --- a/tests/ci/validate-agents-tools.test.js +++ b/tests/ci/validate-agents-tools.test.js @@ -62,7 +62,7 @@ function runSourceViaTempFile(source) { stderr: err.stderr || '', }; } finally { - try { fs.unlinkSync(tmpFile); } catch (_) { /* ignore cleanup errors */ } + fs.rmSync(tmpFile, { force: true }); } }