mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: fix stderr Buffer assertion in exec encoding test
Signed-off-by: greenhead <greenheadhq@gmail.com> PR-URL: https://github.com/nodejs/node/pull/66008 Refs: https://github.com/nodejs/node/pull/10919 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
1 parent
0a9e844866
commit
b8c5283cbc
1 file changed
+1
-1
@@ -41,7 +41,7 @@ if (process.argv[2] === 'child') {
|
||||
[undefined, null, 'buffer', 'invalid'].forEach((encoding) => {
|
||||
run({ encoding }, common.mustCall((stdout, stderr) => {
|
||||
assert(stdout instanceof Buffer);
|
||||
assert(stdout instanceof Buffer);
|
||||
assert(stderr instanceof Buffer);
|
||||
assert.strictEqual(stdout.toString(), expectedStdout);
|
||||
assert.strictEqual(stderr.toString(), expectedStderr);
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user