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
|
// The apple script will try to terminate the app
|
||||||
// If there's an error terminating the app, then it will print to stderr
|
// If there's an error terminating the app, then it will print to stderr
|
||||||
ChildProcess.exec('osascript -e \'quit app "Electron"\'', (err, stdout, stderr) => {
|
ChildProcess.exec('osascript -e \'quit app "Electron"\'', (err, stdout, stderr) => {
|
||||||
assert(!err)
|
assert(!err, ['err:', err, 'stdout:', stdout, 'stderr:', stderr].join('\n'))
|
||||||
assert(!stderr.trim())
|
assert(!stderr.trim(), ['stdout:', stdout, 'stderr:', stderr].join('\n'))
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue