Skip to content

Commit

Permalink
process.exit
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 13, 2019
1 parent 5657102 commit 6f9164e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,12 @@ Promise.all([restoreCachedNpm(), restoreCachedCypressBinary()])
.then(startServerMaybe)
.then(waitOnMaybe)
.then(runTests)
.then(() => {
console.log('all done, exiting')
// force exit to avoid waiting for child processes,
// like the server we have started
process.exit(0)
})
.catch(error => {
console.log(error)
core.setFailed(error.message)
Expand Down
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ Promise.all([restoreCachedNpm(), restoreCachedCypressBinary()])
.then(startServerMaybe)
.then(waitOnMaybe)
.then(runTests)
.then(() => {
console.log('all done, exiting')
// force exit to avoid waiting for child processes,
// like the server we have started
process.exit(0)
})
.catch(error => {
console.log(error)
core.setFailed(error.message)
Expand Down

0 comments on commit 6f9164e

Please sign in to comment.