diff --git a/test/parallel/test-debug-process.js b/test/parallel/test-debug-process.js index 0d10a15e2eefa0..4eb5ad7b4d5db8 100644 --- a/test/parallel/test-debug-process.js +++ b/test/parallel/test-debug-process.js @@ -16,6 +16,6 @@ cp.on('exit', common.mustCall(function() { try { process._debugProcess(cp.pid); } catch (error) { - assert.strictEqual(error.message, 'The system cannot find the file specified.'); + assert.strictEqual(error.errno, 2); } }));