Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
MoLow and aduh95 authored Jul 4, 2022
commit e48d3eccbd6c58e30343fe9766bf9e700afb940b
3 changes: 2 additions & 1 deletion lib/internal/main/test_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {
ArrayPrototypeSort,
Promise,
PromiseAll,
Comment thread
MoLow marked this conversation as resolved.
SafeArrayIterator,
SafeSet,
} = primordials;
const {
Expand Down Expand Up @@ -131,7 +132,7 @@ function runTestFile(path) {
child.once('exit', async (code, signal) => {
if (code !== 0 || signal !== null) {
if (!err) {
await PromiseAll([finished(child.stderr), finished(child.stdout)]);
await PromiseAll(new SafeArrayIterator([finished(child.stderr), finished(child.stdout)]));
err = new ERR_TEST_FAILURE('test failed', kSubtestsFailed);
err.exitCode = code;
err.signal = signal;
Expand Down