Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(tests): Increase wait time for webhooks.
damenchoc1e803c6e307
diff --git a/tests/helpers/WebhookProxy.ts b/tests/helpers/WebhookProxy.tsindex 72e66941a7..f8e4ebda08 100644--- a/tests/helpers/WebhookProxy.ts+++ b/tests/helpers/WebhookProxy.ts@@ -107,7 +107,7 @@ export default class WebhookProxy {* @param eventType* @param timeout*/- async waitForEvent(eventType: string, timeout = 4000): Promise<any> {+ async waitForEvent(eventType: string, timeout = 120000): Promise<any> {// we create the error here so we have a meaningful stack traceconst error = new Error(`Timeout waiting for event:${eventType}`);diff --git a/tests/specs/iframe/chat.spec.ts b/tests/specs/iframe/chat.spec.tsindex a06906620e..58857e0c5f 100644--- a/tests/specs/iframe/chat.spec.ts+++ b/tests/specs/iframe/chat.spec.ts@@ -146,7 +146,7 @@ describe('Chat', () => {preAuthenticatedLink: string;};eventType: string;- } = await webhooksProxy.waitForEvent('CHAT_UPLOADED', 20000);+ } = await webhooksProxy.waitForEvent('CHAT_UPLOADED');expect('CHAT_UPLOADED').toBe(event.eventType);expect(event.data.preAuthenticatedLink).toBeDefined();diff --git a/tests/specs/iframe/recording.spec.ts b/tests/specs/iframe/recording.spec.tsindex da8f9d64b4..2169fc024a 100644--- a/tests/specs/iframe/recording.spec.ts+++ b/tests/specs/iframe/recording.spec.ts@@ -75,7 +75,7 @@ describe('Recording', () => {const liveStreamEvent: {customerId: string;eventType: string;- } = await webhooksProxy.waitForEvent('LIVE_STREAM_STARTED', 15000);+ } = await webhooksProxy.waitForEvent('LIVE_STREAM_STARTED');expect('LIVE_STREAM_STARTED').toBe(liveStreamEvent.eventType);expect(liveStreamEvent.customerId).toBe(customerId);@@ -98,7 +98,7 @@ describe('Recording', () => {const liveStreamEvent: {customerId: string;eventType: string;- } = await webhooksProxy.waitForEvent('LIVE_STREAM_ENDED', 20000);+ } = await webhooksProxy.waitForEvent('LIVE_STREAM_ENDED');expect('LIVE_STREAM_ENDED').toBe(liveStreamEvent.eventType);expect(liveStreamEvent.customerId).toBe(customerId);@@ -136,7 +136,7 @@ async function testRecordingStarted(command: boolean) {const recordingEvent: {customerId: string;eventType: string;- } = await webhooksProxy.waitForEvent('RECORDING_STARTED', 15000);+ } = await webhooksProxy.waitForEvent('RECORDING_STARTED');expect('RECORDING_STARTED').toBe(recordingEvent.eventType);expect(recordingEvent.customerId).toBe(customerId);@@ -174,7 +174,7 @@ async function testRecordingStopped(command: boolean) {const liveStreamEvent: {customerId: string;eventType: string;- } = await webhooksProxy.waitForEvent('RECORDING_ENDED', 20000);+ } = await webhooksProxy.waitForEvent('RECORDING_ENDED');expect('RECORDING_ENDED').toBe(liveStreamEvent.eventType);expect(liveStreamEvent.customerId).toBe(customerId);@@ -186,7 +186,7 @@ async function testRecordingStopped(command: boolean) {participants: Array<string>;};eventType: string;- } = await webhooksProxy.waitForEvent('RECORDING_UPLOADED', 20000);+ } = await webhooksProxy.waitForEvent('RECORDING_UPLOADED');const jwtPayload = p1.getToken()?.payload;diff --git a/tests/specs/iframe/transcriptions.spec.ts b/tests/specs/iframe/transcriptions.spec.tsindex c27cc39c5e..38042694af 100644--- a/tests/specs/iframe/transcriptions.spec.ts+++ b/tests/specs/iframe/transcriptions.spec.ts@@ -147,7 +147,7 @@ describe('Transcriptions', () => {// sometimes events are not immediately received,// let's wait for destroy event before waiting for those that depends on it- await webhooksProxy.waitForEvent('ROOM_DESTROYED', 10000);+ await webhooksProxy.waitForEvent('ROOM_DESTROYED');if (webhooksProxy) {const event: {@@ -155,7 +155,7 @@ describe('Transcriptions', () => {preAuthenticatedLink: string;};eventType: string;- } = await webhooksProxy.waitForEvent('TRANSCRIPTION_UPLOADED', 20000);+ } = await webhooksProxy.waitForEvent('TRANSCRIPTION_UPLOADED');expect('TRANSCRIPTION_UPLOADED').toBe(event.eventType);expect(event.data.preAuthenticatedLink).toBeDefined();@@ -193,7 +193,7 @@ async function checkReceivingChunks(p1: Participant, p2: Participant, webhooksPrstable: string;};eventType: string;- } = await webhooksProxy.waitForEvent('TRANSCRIPTION_CHUNK_RECEIVED', 60000);+ } = await webhooksProxy.waitForEvent('TRANSCRIPTION_CHUNK_RECEIVED');expect('TRANSCRIPTION_CHUNK_RECEIVED').toBe(event.eventType);