diff --git a/test/player_integration.js b/test/player_integration.js index c6dcf30dda..f195ed37a9 100644 --- a/test/player_integration.js +++ b/test/player_integration.js @@ -181,7 +181,7 @@ describe('Player', function() { return waitForTimeOrEnd(video, 30); }).then(function() { if (video.ended) { - expect(video.currentTime).toBeCloseTo(video.duration); + expect(video.currentTime).toBeCloseTo(video.duration, 0.1); } else { expect(video.currentTime).toBeGreaterThan(20); // If it were very close to duration, why !video.ended? @@ -193,7 +193,7 @@ describe('Player', function() { // 30 seconds or video ended, whichever comes first. return waitForTimeOrEnd(video, 30).then(function() { expect(video.ended).toBe(true); - expect(video.currentTime).toBeCloseTo(video.duration); + expect(video.currentTime).toBeCloseTo(video.duration, 0.1); }); } }