Skip to content

Commit

Permalink
test: Fix a test that could fail on firefox via a race condition (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jun 27, 2019
1 parent 58845ed commit 47ff715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/source-updater.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ function(assert) {

QUnit.test('setDuration blocks audio and video queue entries until it finishes',
function(assert) {
const done = assert.async();
const done = assert.async(2);

assert.expect(6);

Expand All @@ -835,6 +835,7 @@ function(assert) {
this.mediaSource.duration,
11,
'video append processed post duration set');
done();
});
this.sourceUpdater.appendBuffer({type: 'audio', bytes: mp4Audio()}, () => {
assert.equal(
Expand Down

0 comments on commit 47ff715

Please sign in to comment.