mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix integration test not assigning to clusterAdded correctly (#3168)
This commit is contained in:
1 parent
7058193295
commit
eba44d76aa
2 files changed
+27
-42
No files matched your search
@@ -105,7 +105,11 @@ export async function showCatalog(app: Application) {
|
||||
|
||||
type AsyncPidGetter = () => Promise<number>;
|
||||
|
||||
export async function tearDown(app: Application) {
|
||||
export async function tearDown(app?: Application) {
|
||||
if (!app?.isRunning()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const pid = await (app.mainProcess.pid as any as AsyncPidGetter)();
|
||||
|
||||
await app.stop();
|
||||
|
||||
Reference in new issue
Block a user