test: remove custom error message
Default error message contains the actual and expected values, which is more informative than the custom error message to be deleted. PR-URL: https://github.com/nodejs/node/pull/19526 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
54fbbb1037
commit
85a3d828bb
@ -28,8 +28,8 @@ const node = JSON.stringify(process.execPath);
|
|||||||
const cmd = `cat ${filename} | ${node} ${f} child`;
|
const cmd = `cat ${filename} | ${node} ${f} child`;
|
||||||
exec(cmd, { maxBuffer: 1000000 }, function(err, stdout, stderr) {
|
exec(cmd, { maxBuffer: 1000000 }, function(err, stdout, stderr) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert.strictEqual(stdout, dataExpected, 'it reads the file and outputs it');
|
assert.strictEqual(stdout, dataExpected);
|
||||||
assert.strictEqual(stderr, '', 'it does not write to stderr');
|
assert.strictEqual(stderr, '');
|
||||||
console.log('ok');
|
console.log('ok');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user