From e9f975892c1fd35c1b113ee8eb5fe1b3aa7379ea Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Wed, 28 Aug 2024 18:35:48 +0200 Subject: [PATCH] Try fixing flaky integration tests --- tests/integration/scenarios/initial_playback.test.js | 2 +- tests/integration/scenarios/manifest_error.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/scenarios/initial_playback.test.js b/tests/integration/scenarios/initial_playback.test.js index df14d247d7..4df7f718d7 100644 --- a/tests/integration/scenarios/initial_playback.test.js +++ b/tests/integration/scenarios/initial_playback.test.js @@ -280,7 +280,7 @@ function runInitialPlaybackTests({ multithread } = {}) { }); expect(manifestLoaderCalledTimes).to.equal(1); - await sleep(100); + await sleep(500); expect(manifestLoaderCalledTimes).to.equal(1); expect(segmentLoaderLoaderCalledTimes).to.equal(4); diff --git a/tests/integration/scenarios/manifest_error.test.js b/tests/integration/scenarios/manifest_error.test.js index d023795a00..3f670c8e47 100644 --- a/tests/integration/scenarios/manifest_error.test.js +++ b/tests/integration/scenarios/manifest_error.test.js @@ -356,7 +356,7 @@ describe("manifest error management", function () { expect(player.getError()).to.equal(null); - vi.advanceTimersByTime(100000); + vi.advanceTimersByTime(10000); vi.useRealTimers(); await sleepWithoutFakeTimer(0);