Skip to content

Commit fec80e6

Browse files
committed
CR
1 parent 95d8d57 commit fec80e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/internal/test_runner/harness.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22
const {
33
ArrayPrototypeForEach,
4-
PromiseResolve,
54
SafeMap,
65
SafeWeakSet,
76
} = primordials;
@@ -188,13 +187,12 @@ async function startSubtest(subtest) {
188187
}
189188

190189
function runInParentContext(Factory, addShorthands = true) {
191-
function run(name, options, fn, overrides) {
190+
async function run(name, options, fn, overrides) {
192191
const parent = testResources.get(executionAsyncId()) || getGlobalRoot();
193192
const subtest = parent.createSubtest(Factory, name, options, fn, overrides);
194193
if (!(parent instanceof Suite)) {
195194
return startSubtest(subtest);
196195
}
197-
return PromiseResolve();
198196
}
199197

200198
const test = (name, options, fn) => run(name, options, fn);

0 commit comments

Comments
 (0)