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): Adds an option to specify max instances.

damencho0216bbd1d911
diff --git a/tests/env.example b/tests/env.example
index 34df04f711..6b06cfaef4 100644
--- a/tests/env.example
+++ b/tests/env.example
@@ -26,6 +26,9 @@
# The kid to use in the token
#JWT_KID=
+# The count of workers that execute the tests in parallel
+# MAX_INSTANCES=1
+
# The address of the webhooks proxy used to test the webhooks feature (e.g. wss://your.service/?tenant=sometenant)
#WEBHOOKS_PROXY_URL=
# A shared secret to authenticate the webhook proxy connection
diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts
index d8dc08a3f5..8cb0b5ef7d 100644
--- a/tests/wdio.conf.ts
+++ b/tests/wdio.conf.ts
@@ -63,7 +63,7 @@ export const config: WebdriverIO.MultiremoteConfig = {
specs: [
'specs/**'
],
- maxInstances: 1, // if changing check onWorkerStart logic
+ maxInstances: parseInt(process.env.MAX_INSTANCES || '1', 10), // if changing check onWorkerStart logic
baseUrl: process.env.BASE_URL || 'https://alpha.jitsi.net/torture/',
tsConfigPath: './tsconfig.json',