Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tests): Hangups failed tests.

damenchodecd9b342c85
diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts
index cca9505696..02d582ce14 100644
--- a/tests/wdio.conf.ts
+++ b/tests/wdio.conf.ts
@@ -614,6 +614,13 @@ export const config: WebdriverIO.MultiremoteConfig = {
AllureReporter.addAttachment(a.filename, a.content, a.type);
}
);
+
+ console.log('Hanging up after test failure');
+ // let's hangup all the calls and give time for it to push any stats and logs
+ await Promise.all(multiRemoteBrowser.instances.map(async (instance: string) => {
+ // @ts-ignore
+ await ctx[instance]?.hangup();
+ }));
}
},