Skip to content

Commit

Permalink
fix issue with abortOnFailure condition in testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityvi committed Oct 12, 2023
1 parent 6b64e87 commit 560e772
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/testsuite/index.js
Expand Up @@ -863,8 +863,7 @@ class TestSuite {
return this.retryCurrentTestCase();
}

const abortOnFailure = isDefined(possibleError.abortOnFailure) ? possibleError.abortOnFailure : true;
if ((possibleError instanceof Error && abortOnFailure) && this.shouldSkipTestsOnFail()) {
if ((possibleError instanceof Error && (possibleError?.abortOnFailure ?? true)) && this.shouldSkipTestsOnFail()) {
throw possibleError;
}

Expand Down

0 comments on commit 560e772

Please sign in to comment.