test: use exit event to wait for process exit (#21865)

This commit is contained in:
Cheng Zhao 2020-01-27 10:29:50 +09:00 committed by GitHub
parent 2743d60f52
commit 0209302d84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View file

@ -161,7 +161,7 @@ describe('netLog module', () => {
}
})
await emittedOnce(appProcess, 'close')
await emittedOnce(appProcess, 'exit')
expect(fs.existsSync(dumpFileDynamic)).to.be.true('dynamic dump file exists')
})
})