mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: make netLog test pass when app crash on exit
This commit is contained in:
committed by
Jeremy Apthorp
parent
a6256c672a
commit
7ba287a05e
@@ -108,7 +108,7 @@ describe('netLog module', () => {
|
||||
}
|
||||
})
|
||||
|
||||
appProcess.once('close', () => {
|
||||
appProcess.once('exit', () => {
|
||||
expect(fs.existsSync(dumpFile)).to.be.true()
|
||||
done()
|
||||
})
|
||||
@@ -130,7 +130,7 @@ describe('netLog module', () => {
|
||||
}
|
||||
})
|
||||
|
||||
appProcess.once('close', () => {
|
||||
appProcess.once('exit', () => {
|
||||
expect(fs.existsSync(dumpFile)).to.be.true()
|
||||
expect(fs.existsSync(dumpFileDynamic)).to.be.true()
|
||||
done()
|
||||
|
||||
Reference in New Issue
Block a user