test: make netLog test pass when app crash on exit
This commit is contained in:
parent
a6256c672a
commit
7ba287a05e
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue