We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1921de commit be359c9Copy full SHA for be359c9
lib/internal/test_runner/test.js
@@ -482,10 +482,10 @@ class Test extends AsyncResource {
482
return;
483
}
484
485
- bailedOut = bail;
486
this.endTime = hrtime();
487
this.passed = false;
488
this.error = err;
+ bailedOut = bail;
489
490
491
pass() {
@@ -562,7 +562,9 @@ class Test extends AsyncResource {
562
563
async run(pendingSubtestsError) {
564
if (bailedOut) {
565
- this.postRun();
+ if (this.parent !== null) {
566
+ this.parent.postRun();
567
+ }
568
569
570
0 commit comments