From cc6b2f49cf0f663b2b1312fb42a467047b2c71a0 Mon Sep 17 00:00:00 2001 From: larissayvette Date: Mon, 10 Oct 2016 18:07:43 +0100 Subject: [PATCH] test: fixes that do not affect performance PR-URL: https://github.com/nodejs/node/pull/9011 Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Rich Trott --- test/parallel/test-debugger-pid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-debugger-pid.js b/test/parallel/test-debugger-pid.js index b36978414e..1da3481107 100644 --- a/test/parallel/test-debugger-pid.js +++ b/test/parallel/test-debugger-pid.js @@ -29,8 +29,8 @@ interfacer.on('line', function(line) { switch (++lineCount) { case 1: line = line.replace(/^(debug> *)+/, ''); - var msg = 'There was an internal error in Node\'s debugger. ' + - 'Please report this bug.'; + const msg = 'There was an internal error in Node\'s debugger. ' + + 'Please report this bug.'; expected = `(node:${pid}) ${msg}`; break; @@ -50,5 +50,5 @@ interfacer.on('line', function(line) { }); interfacer.on('exit', function(code, signal) { - assert.ok(code == 1, 'Got unexpected code: ' + code); + assert.strictEqual(code, 1, `Got unexpected code: ${code}`); });