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
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
7058193295
commit
dccdcd6b63
2 files changed
+25
-39
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