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 committed 2021-02-09 11:12:45 -05:00
1 parent 42928a845f
commit 69ce254b81
4 files changed
+11 -11

No files matched your search

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