Skip to content

Commit

Permalink
tests: raise error tolerance for setPlaybackRate test
Browse files Browse the repository at this point in the history
Appveyor seems to have trouble with this one, and it seems to be related to performance.
  • Loading branch information
peaBerberian committed Jun 4, 2020
1 parent 082cef5 commit 40682e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/utils/launch_tests_for_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ export default function launchTestsForContent(manifestInfos) {
describe("setPlaybackRate", () => {
// TODO handle live contents
it("should update the speed accordingly", async function() {
this.timeout(5000);
this.timeout(7000);
player.loadVideo({
url: manifestInfos.url,
transport,
Expand All @@ -751,9 +751,9 @@ export default function launchTestsForContent(manifestInfos) {
expect(player.getPosition()).to.be.closeTo(minimumPosition, 0.001);
player.setPlaybackRate(1);
player.play();
await sleep(1200);
await sleep(3000);
const initialPosition = player.getPosition();
expect(initialPosition).to.be.closeTo(minimumPosition + 1.2, 0.3);
expect(initialPosition).to.be.closeTo(minimumPosition + 3, 1);

player.setPlaybackRate(3);
await sleep(2000);
Expand Down

0 comments on commit 40682e9

Please sign in to comment.