Skip to content

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

feat(tests): Increase the randomness of the room name.

damencho7b4cc552fbce
diff --git a/tests/helpers/utils.ts b/tests/helpers/utils.ts
index a3b3032fc6..934631ac3d 100644
--- a/tests/helpers/utils.ts
+++ b/tests/helpers/utils.ts
@@ -3,8 +3,7 @@ import { config as testsConfig } from './TestsConfig';
const https = require('https');
export function generateRoomName(testName: string) {
- // XXX why chose between 1 and 40 and then always pad with an extra 0?
- const rand = (Math.floor(Math.random() * 40) + 1).toString().padStart(3, '0');
+ const rand = (Math.floor(Math.random() * 400) + 1).toString();
let roomName = `${testName}-${rand}`;
if (testsConfig.roomName.prefix) {