Skip to content

Commit

Permalink
Fix seek to end 'ended' test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Mar 31, 2021
1 parent 030193d commit 4a3b11b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/functional/auto/setup.js
Expand Up @@ -267,17 +267,7 @@ async function testSeekOnVOD(url, config) {
logs: self.logString,
});
}
}, 3000);
self.setTimeout(function () {
const { currentTime, paused } = video;
callback({
code: 'timeout-waiting-for-ended-event',
currentTime,
duration,
paused,
logs: self.logString,
});
}, 10000);
}, 5000);
};
const seekToTime = video.seekable.end(0) - 3;
console.log(
Expand All @@ -287,6 +277,16 @@ async function testSeekOnVOD(url, config) {
seekToTime
);
video.currentTime = seekToTime;
self.setTimeout(function () {
const { currentTime, paused } = video;
callback({
code: 'timeout-waiting-for-ended-event',
currentTime,
duration,
paused,
logs: self.logString,
});
}, 12000);
}, 3000);
};
// Fail test early if more than 2 buffered ranges are found (with configured exceptions)
Expand Down

0 comments on commit 4a3b11b

Please sign in to comment.