Skip to content

Commit

Permalink
test: fix ie 11 race condition in tests (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Sep 15, 2021
1 parent 8160019 commit 1517386
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/loader-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,12 @@ export const LoaderCommonFactory = ({
this.clock.tick(1);
return Promise.resolve();
}).then(() => new Promise((resolve, reject) => {
loader.on('playlistupdate', () => {
this.clock.tick(1);
resolve();
});
loader.on('trackinfo', () => {
loader.on('playlistupdate', () => {
this.clock.tick(1);
resolve();
});

loader.playlist(playlistWithDuration(50, {
uri: 'bar-1080.m3u8',
mediaSequence: 0,
Expand Down

0 comments on commit 1517386

Please sign in to comment.