Revert "Broadcast cluster's disconnected state before stopping KubeAuthProxy (#4273)" (#4412)

This reverts commit 8081d35f9c.
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-11-24 16:18:30 +03:00
1 parent 5d172b89db
commit 820b2d1b7a
7 files changed
+24 -47

No files matched your search

+1 -4
View File
@@ -328,8 +328,6 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
}, 10*60*1000);
afterEach(async () => {
await frame.click(`[data-testid="sidebar-cluster-dropdown"]`);
await frame.click(`.Menu >> text="Disconnect"`);
await cleanup();
}, 10*60*1000);
@@ -339,7 +337,6 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await frame.waitForSelector(`.Menu >> text="Settings"`);
await frame.waitForSelector(`.Menu >> text="Disconnect"`);
await frame.waitForSelector(`.Menu >> text="Delete"`);
await frame.click(`[data-testid="sidebar-cluster-dropdown"]`);
});
it("should navigate around common cluster pages", async () => {
@@ -373,7 +370,7 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
}
}, 10*60*1000);
it("show logs and highlight the log search entries", async () => {
await frame.click(`a[href="/workloads"]`);
+7 -8
View File
@@ -72,12 +72,7 @@ export async function start() {
...process.env,
},
timeout: 100_000,
});
const cleanup = async () => {
await app.close();
await remove(CICD).catch(noop);
};
} as Parameters<typeof electron["launch"]>[0]);
try {
const window = await getMainWindow(app);
@@ -85,10 +80,14 @@ export async function start() {
return {
app,
window,
cleanup,
cleanup: async () => {
await app.close();
await remove(CICD).catch(noop);
},
};
} catch (error) {
await cleanup();
await app.close();
await remove(CICD).catch(noop);
throw error;
}
}