From 7b4cc552fbce31e92b38cf28d3320fdb4dd8a983 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 16 Oct 2025 10:35:35 -0500 Subject: [PATCH] feat(tests): Increase the randomness of the room name. --- tests/helpers/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {