Skip to content

Commit

Permalink
Merge pull request jitsi#639 from jitsi/random-room-name
Browse files Browse the repository at this point in the history
fix: Use a random room name instead of "random-room-name".
  • Loading branch information
bgrozev authored May 2, 2024
2 parents e59b1be + b59f19b commit f9d24ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/jitsi/meet/test/BreakoutRoomsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void testSendParticipantToRoom()
// so the previous breakout rooms would still be there.
// To avoid this issue we use a different meeting
JitsiMeetUrl url = getJitsiMeetUrl()
.setRoomName("random-room-name")
.setRoomName(generateRandomRoomName())
.appendConfig("config.startWithAudioMuted=true");
ensureTwoParticipants(url, url);

Expand Down
8 changes: 6 additions & 2 deletions src/test/java/org/jitsi/meet/test/base/AbstractBaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,17 @@ public abstract class AbstractBaseTest<P extends Participant>
*/
public static final String TOKEN_PNAME = "org.jitsi.token";

public static String generateRandomRoomName()
{
return "jitsimeettorture" + ((int)(Math.random()*1000000000));
}

/**
* Default.
*/
protected AbstractBaseTest()
{
currentRoomName
= "jitsimeettorture" + String.valueOf((int)(Math.random()*1000000000));
currentRoomName = generateRandomRoomName();
participants = null;
}

Expand Down

0 comments on commit f9d24ee

Please sign in to comment.