1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

More cleanups

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-08-17 12:18:29 +03:00
parent 0a4256aa48
commit bc1c143ccd
2 changed files with 2 additions and 5 deletions

View File

@ -14,7 +14,6 @@ case "darwin":
}
export function setup(): Application {
const userData = process.cwd() + "/.spectron"
return new Application({
// path to electron app
args: [],
@ -29,9 +28,10 @@ export function setup(): Application {
}
export async function tearDown(app: Application) {
const pid = app.mainProcess.pid
await app.stop()
try {
process.kill(app.mainProcess.pid, 0);
process.kill(pid, 0);
} catch(e) {
return
}

View File

@ -1,9 +1,6 @@
import { Application } from "spectron"
import * as util from "../helpers/utils"
import { spawnSync } from "child_process"
import { stat } from "fs"
import logger from "../../src/main/logger"
import AppCanvas from "material-ui/internal/AppCanvas"
jest.setTimeout(20000)