Skip to content
Closed
Prev Previous commit
Next Next commit
fix
  • Loading branch information
MoLow committed Jun 26, 2022
commit 591cba34a8c466e736fadef0bb0ac76911b6f32f
5 changes: 4 additions & 1 deletion lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,13 @@ class Suite extends Test {
this.fn = () => {};
}
async run() {
this.parent.activeSubtests++;
this.startTime = hrtime();
for (const subtest of this.subtests) {
await subtest.run();
}
await super.run();
this.pass();
this.postRun();
}
}

Expand Down