Skip to content

Commit

Permalink
Merge pull request #94 from danielwestendorf/properly-kill-test-process
Browse files Browse the repository at this point in the history
Pass pid to kill function
  • Loading branch information
danielwestendorf committed Feb 22, 2020
2 parents 9dd42fa + 851f6ee commit d17bc84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ChromeLauncher.launch({
console.log(`Chrome debugging port running on ${chrome.port}`)

chrome.process.on('close', (code) => {
console.error(`Chrome process closed with code ${code}`);
console.error(`Chrome process closed with code ${code}`)
process.exit(code);
})

Expand Down
2 changes: 1 addition & 1 deletion test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ module.exports = {
},

afterAll: function() {
server.process.kill()
process.kill(server.process.pid, 'SIGINT')
}
}

0 comments on commit d17bc84

Please sign in to comment.