Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Jul 4, 2022
1 parent f708f03 commit 04cf1d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/internal/main/test_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function runTestFile(path) {

child.stdout.setEncoding('utf8');
child.stderr.setEncoding('utf8');
const [{ code, signal }, stdout, stderr] = await PromiseAll(new SafeArrayIterator([
const { 0: { code, signal }, 1: stdout, 2: stderr } = await PromiseAll(new SafeArrayIterator([
once(child, 'exit', { signal: t.signal }),
child.stdout.toArray({ signal: t.signal }),
child.stderr.toArray({ signal: t.signal }),
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class Test extends AsyncResource {
// TODO(MoLow): adjust whenever this is resolved https://github.com/nodejs/node/issues/37220
const abortPromise = once(this.signal, 'abort');
const { args, ctx } = this.getRunArgs();
ArrayPrototypeUnshift(args, this.fn, ctx);
ArrayPrototypeUnshift(args, this.fn, ctx);

if (this.fn.length === args.length - 1) {
// This test is using legacy Node.js error first callbacks.
Expand All @@ -375,7 +375,7 @@ class Test extends AsyncResource {
}
} else {
// This test is synchronous or using Promises.
const promise = ReflectApply(this.runInAsyncScope, this, args);
const promise = ReflectApply(this.runInAsyncScope, this, args);
await PromiseRace([promise, abortPromise]);
}

Expand Down

0 comments on commit 04cf1d6

Please sign in to comment.