Fix integration tests

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2020-10-13 16:37:10 +03:00
1 parent 52b447948d
commit e915a8e184
3 files changed
+6 -6

No files matched your search

+4 -3
View File
@@ -13,7 +13,6 @@ export function setup(): Application {
path: AppPaths[process.platform],
startTimeout: 30000,
waitTimeout: 60000,
chromeDriverArgs: ['remote-debugging-port=9222'],
env: {
CICD: "true"
}
@@ -22,10 +21,12 @@ export function setup(): Application {
export async function tearDown(app: Application) {
const pid = app.mainProcess.pid
let ppid: any = pid
ppid = await ppid()
await app.stop()
try {
process.kill(pid, 0);
process.kill(ppid, "SIGKILL");
} catch (e) {
return
console.error(e)
}
}