Fix integration test not assigning to clusterAdded correctly

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-06-23 16:04:54 -04:00
1 parent 7058193295
commit dccdcd6b63
2 files changed
+25 -39

No files matched your search

+5 -1
View File
@@ -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();