From c9a5be4a90de9a81bb2efc175a67dd5e8a4013a0 Mon Sep 17 00:00:00 2001 From: Anton B Date: Mon, 21 Feb 2022 15:08:33 -0300 Subject: [PATCH] minor fixes --- bigbluebutton-tests/playwright/stress/stress.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bigbluebutton-tests/playwright/stress/stress.js b/bigbluebutton-tests/playwright/stress/stress.js index c1b34fbaab..5a79834cd4 100644 --- a/bigbluebutton-tests/playwright/stress/stress.js +++ b/bigbluebutton-tests/playwright/stress/stress.js @@ -115,19 +115,19 @@ class Stress { } async usersJoinExceddingParticipantsLimit() { - for (let i = 1; i <= c.JOIN_TWO_USERS_EXCEEDING_MAX_PARTICIPANTS + 1; i++) { + for (let i = 1; i <= c.JOIN_TWO_USERS_EXCEEDING_MAX_PARTICIPANTS; i++) { console.log(`loop ${i} of ${c.JOIN_TWO_USERS_EXCEEDING_MAX_PARTICIPANTS}`); const pages = []; const meetingId = await createMeeting(parameters, `maxParticipants=${c.MAX_PARTICIPANTS_TO_JOIN}`); - for (let i = 1; i <= c.MAX_PARTICIPANTS_TO_JOIN + 1; i++) { + for (let j = 1; j <= c.MAX_PARTICIPANTS_TO_JOIN + 1; j++) { pages.push(new Page(this.browser, await this.getNewPageTab())); } - for (let i = 1; i < c.MAX_PARTICIPANTS_TO_JOIN; i++) { - console.log(`- joining user ${i} of ${c.MAX_PARTICIPANTS_TO_JOIN}`); - await pages[i - 1].init(true, false, { meetingId, fullName: `User-${i}` }); + for (let j = 1; j < c.MAX_PARTICIPANTS_TO_JOIN; j++) { + console.log(`- joining user ${j} of ${c.MAX_PARTICIPANTS_TO_JOIN}`); + await pages[j - 1].init(true, false, { meetingId, fullName: `User-${j}` }); } console.log('- joining two users at the same time'); @@ -137,7 +137,7 @@ class Stress { ] Promise.all(lastPages.map((page, index) => { - page.init(true, false, { meetingId, fullName: `User-last-${index}` }) + return page.init(true, false, { meetingId, fullName: `User-last-${index}` }) })); try {