Skip to content

Commit be359c9

Browse files
fix: correctly show bailed out tests
1 parent a1921de commit be359c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/internal/test_runner/test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ class Test extends AsyncResource {
482482
return;
483483
}
484484

485-
bailedOut = bail;
486485
this.endTime = hrtime();
487486
this.passed = false;
488487
this.error = err;
488+
bailedOut = bail;
489489
}
490490

491491
pass() {
@@ -562,7 +562,9 @@ class Test extends AsyncResource {
562562

563563
async run(pendingSubtestsError) {
564564
if (bailedOut) {
565-
this.postRun();
565+
if (this.parent !== null) {
566+
this.parent.postRun();
567+
}
566568
return;
567569
}
568570

0 commit comments

Comments
 (0)