Skip to content

Commit 58d50f5

Browse files
authored
run e2e tests in parallel (#602)
1 parent 5596620 commit 58d50f5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/livekit-rtc/src/tests/e2e.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describeE2E('livekit-rtc e2e', () => {
202202
await dispose();
203203
});
204204

205-
it(
205+
it.concurrent(
206206
'connects to a room',
207207
async () => {
208208
const { roomName, rooms } = await connectTestRooms(1);
@@ -225,7 +225,7 @@ describeE2E('livekit-rtc e2e', () => {
225225
testTimeoutMs,
226226
);
227227

228-
it(
228+
it.concurrent(
229229
'connects multiple participants to the same room',
230230
async () => {
231231
const { roomName, rooms } = await connectTestRooms(2);
@@ -241,7 +241,7 @@ describeE2E('livekit-rtc e2e', () => {
241241
testTimeoutMs,
242242
);
243243

244-
it(
244+
it.concurrent(
245245
'emits participantDisconnected when a participant leaves',
246246
async () => {
247247
const { rooms } = await connectTestRooms(2);
@@ -267,7 +267,7 @@ describeE2E('livekit-rtc e2e', () => {
267267
testTimeoutMs,
268268
);
269269

270-
it(
270+
it.concurrent(
271271
'transfers audio between two participants (sine detection)',
272272
async () => {
273273
const cases = [
@@ -367,7 +367,7 @@ describeE2E('livekit-rtc e2e', () => {
367367
testTimeoutMs * 2,
368368
);
369369

370-
it(
370+
it.concurrent(
371371
'publishes and receives reliable data packets',
372372
async () => {
373373
const { rooms } = await connectTestRooms(2);
@@ -407,7 +407,7 @@ describeE2E('livekit-rtc e2e', () => {
407407
testTimeoutMs,
408408
);
409409

410-
it(
410+
it.concurrent(
411411
'sends and receives text and byte streams',
412412
async () => {
413413
const { rooms } = await connectTestRooms(2);
@@ -469,7 +469,7 @@ describeE2E('livekit-rtc e2e', () => {
469469
testTimeoutMs,
470470
);
471471

472-
it(
472+
it.concurrent(
473473
'invokes RPC methods and returns structured errors',
474474
async () => {
475475
const { rooms } = await connectTestRooms(2);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
22
//
33
// SPDX-License-Identifier: Apache-2.0
4-
54
import { defineConfig } from 'vitest/config';
65

76
export default defineConfig({
87
test: {
98
environment: 'node',
9+
maxConcurrency: 8,
1010
},
1111
});

0 commit comments

Comments
 (0)