Fix integration test not assigning to clusterAdded correctly (#3168)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-06-24 09:21:53 -04:00
1 parent 7058193295
commit eba44d76aa
2 files changed
+27 -42

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();