Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_runner: bail #48919

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix postrun
  • Loading branch information
marco-ippolito committed Aug 29, 2023
commit 647fd4c4dc728a813b7b764396d1920606066138
3 changes: 2 additions & 1 deletion lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,11 @@ class Test extends AsyncResource {
}

fail(err) {
bailedOut = bail;
if (this.error !== null) {
return;
}

bailedOut = bail;
this.endTime = hrtime();
this.passed = false;
this.error = err;
Expand Down Expand Up @@ -581,6 +581,7 @@ class Test extends AsyncResource {

async run() {
if (bailedOut) {
this.postRun();
return;
}
if (this.parent !== null) {
Expand Down