Skip to content

Commit

Permalink
Consider AbortError to be harness failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Dec 26, 2023
1 parent 7d09ad3 commit a047332
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test-engine/lib/results.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export function determineTestResult (testSuites, testId, testResults, honorDepen
if (result === false && result[0] !== 'Assertion') {
return resultTypes.harness_fail
}
if (result[0] === 'AbortError') {
return resultTypes.harness_fail
}
if (test.kind === 'required' || test.kind === undefined) {
if (result === true) {
return resultTypes.pass
Expand Down

0 comments on commit a047332

Please sign in to comment.