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): ensureTwoParticipants.

Hristo Terezov6bf4a4e91d38
diff --git a/tests/helpers/participants.ts b/tests/helpers/participants.ts
index 388d982905..f7e0b233cc 100644
--- a/tests/helpers/participants.ts
+++ b/tests/helpers/participants.ts
@@ -163,13 +163,14 @@ export async function ensureTwoParticipants(ctx: IContext, options: IJoinOptions
const { skipInMeetingChecks } = options;
+ await _joinParticipant('participant2', ctx.p2, p => {
+ ctx.p2 = p;
+ }, {
+ displayName: P2_DISPLAY_NAME,
+ ...options
+ });
+
await Promise.all([
- _joinParticipant('participant2', ctx.p2, p => {
- ctx.p2 = p;
- }, {
- displayName: P2_DISPLAY_NAME,
- ...options
- }),
skipInMeetingChecks ? Promise.resolve() : ctx.p1.waitForRemoteStreams(1),
skipInMeetingChecks ? Promise.resolve() : ctx.p2.waitForRemoteStreams(1)
]);