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

remove unneccessary shorter timeouts on before* handles in integration tests

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton 2021-02-09 11:12:45 -05:00
parent 42928a845f
commit 69ce254b81
4 changed files with 11 additions and 11 deletions

View File

@ -15,7 +15,7 @@ describe("Lens integration tests", () => {
describe("app start", () => { describe("app start", () => {
beforeAll(async () => { beforeAll(async () => {
app = await utils.appStart(); app = await utils.appStart();
}, 20000); });
beforeEach(() => { beforeEach(() => {
abortContoller = new AbortController(); abortContoller = new AbortController();

View File

@ -34,7 +34,7 @@ describe("Lens cluster pages", () => {
}; };
describe("cluster add", () => { describe("cluster add", () => {
beforeAll(async () => app = await utils.appStart(), 20000); beforeAll(async () => app = await utils.appStart());
afterAll(async () => { afterAll(async () => {
if (app?.isRunning()) { if (app?.isRunning()) {
@ -56,7 +56,7 @@ describe("Lens cluster pages", () => {
}; };
describe("cluster menu pages", () => { describe("cluster menu pages", () => {
beforeAll(appStartAddCluster, 40000); beforeAll(appStartAddCluster);
afterAll(async () => { afterAll(async () => {
if (app?.isRunning()) { if (app?.isRunning()) {
@ -437,16 +437,16 @@ describe("Lens cluster pages", () => {
let abortContoller: AbortController; let abortContoller: AbortController;
beforeEach(async () => { beforeEach(async () => {
await appStartAddCluster();
abortContoller = new AbortController(); abortContoller = new AbortController();
}, 40000); await appStartAddCluster();
});
afterEach(async () => { afterEach(async () => {
if (app?.isRunning()) { abortContoller.abort();
if (app?.isRunning()) {
await utils.tearDown(app); await utils.tearDown(app);
} }
abortContoller.abort();
}); });
it("shows a logs for a pod", async () => { it("shows a logs for a pod", async () => {
@ -485,7 +485,7 @@ describe("Lens cluster pages", () => {
}); });
describe("cluster operations", () => { describe("cluster operations", () => {
beforeEach(appStartAddCluster, 40000); beforeEach(appStartAddCluster);
afterEach(async () => { afterEach(async () => {
if (app?.isRunning()) { if (app?.isRunning()) {

View File

@ -7,7 +7,7 @@ describe("Lens command palette", () => {
let app: Application; let app: Application;
describe("menu", () => { describe("menu", () => {
beforeAll(async () => app = await utils.appStart(), 20000); beforeAll(async () => app = await utils.appStart());
afterAll(async () => { afterAll(async () => {
if (app?.isRunning()) { if (app?.isRunning()) {

View File

@ -16,7 +16,7 @@ describe("Lens integration tests", () => {
beforeAll(async () => { beforeAll(async () => {
app = await utils.appStart(); app = await utils.appStart();
await utils.clickWhatsNew(app); await utils.clickWhatsNew(app);
}, 20000); });
afterAll(async () => { afterAll(async () => {
if (app && app.isRunning()) { if (app && app.isRunning()) {