Better error logging in api-app-spec.js. (#12122)
In the 'exits gracefully on macos' test for app.exit(exitCode), print the relevant error information if the test fails.
This commit is contained in:
parent
b530d70a7b
commit
e9808d138f
1 changed files with 2 additions and 2 deletions
|
@ -169,8 +169,8 @@ describe('app module', () => {
|
|||
// The apple script will try to terminate the app
|
||||
// If there's an error terminating the app, then it will print to stderr
|
||||
ChildProcess.exec('osascript -e \'quit app "Electron"\'', (err, stdout, stderr) => {
|
||||
assert(!err)
|
||||
assert(!stderr.trim())
|
||||
assert(!err, ['err:', err, 'stdout:', stdout, 'stderr:', stderr].join('\n'))
|
||||
assert(!stderr.trim(), ['stdout:', stdout, 'stderr:', stderr].join('\n'))
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue