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:
parent
42928a845f
commit
69ce254b81
@ -15,7 +15,7 @@ describe("Lens integration tests", () => {
|
||||
describe("app start", () => {
|
||||
beforeAll(async () => {
|
||||
app = await utils.appStart();
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
abortContoller = new AbortController();
|
||||
|
||||
@ -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()) {
|
||||
|
||||
@ -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()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user