Skip to content

Commit

Permalink
fix(mock_xqs): node20 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed May 10, 2023
1 parent 4a96032 commit 7bd892e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generators/app/templates/specs/xqs/xqSuite.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ http.get(url, (res) => {
// see https://mochajs.org/api/mocha#unloadFiles
let suiteRun = mochaInstance.cleanReferencesAfterRun(true).run()
process.on('exit', () => {
process.exit(suiteRun.stats.failures > 0)
if (suiteRun.stats.failures > 0) { process.exit(1) } else { process.exit(0) }
})
}
else {
Expand Down
2 changes: 1 addition & 1 deletion test/mock_xqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function xqsMock (mockRun) {
// see https://mochajs.org/api/mocha#unloadFiles
const suiteRun = mochaInstance.cleanReferencesAfterRun(true).run()
process.on('exit', () => {
process.exit(suiteRun.stats.failures > 0)
if (suiteRun.stats.failures > 0) { process.exit(1) } else { process.exit(0) }
})

// TODO: mark %pending xqstests as pending in mocha report
Expand Down

0 comments on commit 7bd892e

Please sign in to comment.