remove depricated package request from our code

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton authored and Sebastian Malton committed 2021-04-01 12:46:17 -04:00
1 parent 33c405bdcf
commit 47fbf629ea
19 files changed
+397 -269

No files matched your search

+4 -3
View File
@@ -49,12 +49,13 @@ export function describeIf(condition: boolean) {
return condition ? describe : describe.skip;
}
export function setup(): Application {
export function setup(waitTimeout = 60000): Application {
return new Application({
path: AppPaths[process.platform], // path to electron app
args: [],
startTimeout: 30000,
waitTimeout: 60000,
waitTimeout,
chromeDriverArgs: ["remote-debugging-port=9222"],
env: {
CICD: "true"
}
@@ -101,7 +102,7 @@ export async function tearDown(app: Application) {
await app.stop();
try {
process.kill(pid, "SIGKILL");
process.kill(pid, 0);
} catch (e) {
console.error(e);
}