From 952b8516fb2eaa72c1af10c6cc443f452f478ef5 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 10 Jun 2021 15:42:41 -0400 Subject: [PATCH] Change timeouts for integration tests Signed-off-by: Sebastian Malton --- integration/__tests__/app.tests.ts | 2 +- integration/__tests__/cluster-pages.tests.ts | 2 +- integration/__tests__/command-palette.tests.ts | 2 +- integration/helpers/utils.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/integration/__tests__/app.tests.ts b/integration/__tests__/app.tests.ts index 7b8ff11435..757a51c1fa 100644 --- a/integration/__tests__/app.tests.ts +++ b/integration/__tests__/app.tests.ts @@ -30,7 +30,7 @@ import * as utils from "../helpers/utils"; import { listHelmRepositories } from "../helpers/utils"; import { fail } from "assert"; -jest.setTimeout(60000); +jest.setTimeout(5 * 60 * 1000); // 5 minutes so that we can get better errors from spectron // FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below) describe("Lens integration tests", () => { diff --git a/integration/__tests__/cluster-pages.tests.ts b/integration/__tests__/cluster-pages.tests.ts index 24ad38dcfc..7b6c609924 100644 --- a/integration/__tests__/cluster-pages.tests.ts +++ b/integration/__tests__/cluster-pages.tests.ts @@ -33,7 +33,7 @@ import * as util from "util"; export const promiseExec = util.promisify(exec); -jest.setTimeout(60000); +jest.setTimeout(5 * 60 * 1000); // 5 minutes so that we can get better errors from spectron // FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below) describe("Lens cluster pages", () => { diff --git a/integration/__tests__/command-palette.tests.ts b/integration/__tests__/command-palette.tests.ts index 14e95d1264..01271deecf 100644 --- a/integration/__tests__/command-palette.tests.ts +++ b/integration/__tests__/command-palette.tests.ts @@ -22,7 +22,7 @@ import type { Application } from "spectron"; import * as utils from "../helpers/utils"; -jest.setTimeout(60000); +jest.setTimeout(5 * 60 * 1000); // 5 minutes so that we can get better errors from spectron describe("Lens command palette", () => { let app: Application; diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index 9ce33b21c3..20876520c7 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -73,8 +73,8 @@ export function setup(): Application { return new Application({ path: AppPaths[process.platform], // path to electron app args: [], - startTimeout: 30000, - waitTimeout: 60000, + startTimeout: 60000, + waitTimeout: 10000, env: { CICD: "true" }