mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
fix(tests): ensureTwoParticipants.
Now we are waiting for the second participant to join before starting waitForRemoteStreams.
This commit is contained in:
committed by
Дамян Минков
parent
5fd966f042
commit
6bf4a4e91d
@@ -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)
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user