Skip to content

Commit

Permalink
TEMP: longer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhaevre committed Nov 21, 2024
1 parent 94c6a73 commit b213572
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions e2e/src/tests/Ads.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b213572

Please sign in to comment.