mirror of
https://github.com/electron/electron.git
synced 2026-02-03 19:55:43 -05:00
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:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user