Skip to content

Commit

Permalink
test: Tweak StreamingEngine test timeouts (shaka-project#4138)
Browse files Browse the repository at this point in the history
This seems to improve some intermittent test failures on Safari.
  • Loading branch information
joeyparrish committed Apr 20, 2022
1 parent 1eadfd1 commit 14355ee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/media/streaming_engine_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ describe('StreamingEngine', () => {
streamingEngine.switchVariant(variant);
await streamingEngine.start();
video.play();
await waiter.timeoutAfter(120).waitForEnd(video);
// The overall test timeout is 120 seconds, and the content is 60
// seconds. It should be possible to complete this test in 100 seconds,
// and if not, we want the error thrown to be within the overall test's
// timeout window.
await waiter.timeoutAfter(100).waitForEnd(video);
});

it('plays at high playback rates', async () => {
Expand Down Expand Up @@ -293,9 +297,9 @@ describe('StreamingEngine', () => {
video.play();

// After 35 seconds seek back 10 seconds into the first Period.
await waiter.timeoutAfter(60).waitUntilPlayheadReaches(video, 35);
await waiter.timeoutAfter(80).waitUntilPlayheadReaches(video, 35);
video.currentTime = 25;
await waiter.timeoutAfter(60).waitForEnd(video);
await waiter.timeoutAfter(80).waitForEnd(video);
});

it('can handle unbuffered seeks', async () => {
Expand Down

0 comments on commit 14355ee

Please sign in to comment.