From b21357292b9f3a54bb7a975613ce608455359345 Mon Sep 17 00:00:00 2001 From: William Van Haevre Date: Thu, 21 Nov 2024 17:56:56 +0100 Subject: [PATCH] TEMP: longer timeout --- e2e/src/tests/Ads.spec.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/e2e/src/tests/Ads.spec.ts b/e2e/src/tests/Ads.spec.ts index 6733e48d5..06a46fb18 100644 --- a/e2e/src/tests/Ads.spec.ts +++ b/e2e/src/tests/Ads.spec.ts @@ -14,10 +14,15 @@ export default function (spec: TestScope) { spec.it('dispatches sourcechange, play, playing and ad events', async function () { const player = await getTestPlayer(); const playEventsPromise = waitForPlayerEventTypes(player, [PlayerEventType.SOURCE_CHANGE, PlayerEventType.PLAY, PlayerEventType.PLAYING]); - const adEventsPromise = waitForPlayerEvents(player, [ - { type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BREAK_BEGIN } as AdEvent, - { type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BEGIN } as AdEvent, - ]); + const adEventsPromise = waitForPlayerEvents( + player, + [ + { type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BREAK_BEGIN } as AdEvent, + { type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BEGIN } as AdEvent, + ], + true, + { timeout: 60000 }, + ); player.addEventListener(PlayerEventType.SOURCE_CHANGE, () => { console.log('[ADTEST] SOURCE_CHANGE');