mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
spec: add more assertions to help smoke out the close all window failures (#13868)
This commit is contained in:
@@ -168,8 +168,9 @@ describe('app module', () => {
|
||||
const electronPath = remote.getGlobal('process').execPath
|
||||
|
||||
appProcess = ChildProcess.spawn(electronPath, [appPath])
|
||||
appProcess.on('close', code => {
|
||||
expect(code).to.equal(123)
|
||||
appProcess.on('close', (code, signal) => {
|
||||
expect(signal).to.equal(null, 'exit signal should be null, if you see this please tag @MarshallOfSound')
|
||||
expect(code).to.equal(123, 'exit code should be 123, if you see this please tag @MarshallOfSound')
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user