Skip to content

Commit a5be448

Browse files
committed
test_runner: allways enqueue suite subtests
1 parent 5455279 commit a5be448

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/internal/test_runner/test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,13 @@ class Suite extends Test {
919919
return { __proto__: null, ctx, args: [ctx] };
920920
}
921921

922+
hasConcurrency() {
923+
if (this.runOnlySubtests && !this.buildPhaseFinished) {
924+
return false;
925+
}
926+
return super.hasConcurrency();
927+
}
928+
922929
async run() {
923930
const hookArgs = this.getRunArgs();
924931

@@ -939,6 +946,7 @@ class Suite extends Test {
939946

940947
await this.runHook('before', hookArgs);
941948

949+
this.processPendingSubtests();
942950
stopPromise = stopTest(this.timeout, this.signal);
943951
const subtests = this.skipped || this.error ? [] : this.subtests;
944952
const promise = SafePromiseAll(subtests, (subtests) => subtests.start());

0 commit comments

Comments
 (0)