mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 18:57:55 +02:00
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.
This commit is contained in:
@@ -62,7 +62,7 @@ function runSourceViaTempFile(source) {
|
||||
stderr: err.stderr || '',
|
||||
};
|
||||
} finally {
|
||||
try { fs.unlinkSync(tmpFile); } catch (_) { /* ignore cleanup errors */ }
|
||||
fs.rmSync(tmpFile, { force: true });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user