test: fixes that do not affect performance
PR-URL: https://github.com/nodejs/node/pull/9011 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
499d058789
commit
1bc9af88d1
@ -29,8 +29,8 @@ interfacer.on('line', function(line) {
|
|||||||
switch (++lineCount) {
|
switch (++lineCount) {
|
||||||
case 1:
|
case 1:
|
||||||
line = line.replace(/^(debug> *)+/, '');
|
line = line.replace(/^(debug> *)+/, '');
|
||||||
var msg = 'There was an internal error in Node\'s debugger. ' +
|
const msg = 'There was an internal error in Node\'s debugger. ' +
|
||||||
'Please report this bug.';
|
'Please report this bug.';
|
||||||
expected = `(node:${pid}) ${msg}`;
|
expected = `(node:${pid}) ${msg}`;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -50,5 +50,5 @@ interfacer.on('line', function(line) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
interfacer.on('exit', function(code, signal) {
|
interfacer.on('exit', function(code, signal) {
|
||||||
assert.ok(code == 1, 'Got unexpected code: ' + code);
|
assert.strictEqual(code, 1, `Got unexpected code: ${code}`);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user