Skip to content

Commit

Permalink
Work around Tizen DRM test failure
Browse files Browse the repository at this point in the history
Instead of hanging while we wait for key status events that will never
come, move on after 5 seconds.

Issue #891

Change-Id: Ia338401097fb29039fa203729d0efaa4cca5623b
  • Loading branch information
joeyparrish committed Jul 17, 2017
1 parent 4903467 commit b01ef25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/media/drm_engine_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ describe('DrmEngine', function() {
// This was probably a PlayReady persistent license.
}
}).then(function() {
return keyStatusEventSeen;
// Some platforms (notably 2017 Tizen TVs) do not fire key status
// events. This is a temporary workaround for the test failure
// in https://github.com/google/shaka-player/issues/891
var keyStatusTimeout = shaka.test.Util.delay(5);
return Promise.race([keyStatusTimeout, keyStatusEventSeen]);
}).then(function() {
var call = onKeyStatusSpy.calls.mostRecent();
if (call) {
Expand Down

0 comments on commit b01ef25

Please sign in to comment.