mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Throw RuntimeException instead of Error from ExoHostedTest
Throwing Error forces a test to catch Throwable (e.g.
DashWidevineOfflineTest#widevineOfflineReleasedV22), which will also
catch AssertionError meaning the fail() call at the end of the try block
won't work.
The DashWidevineOfflineTest have been broken since
91185500a1
PiperOrigin-RevId: 331120894
This commit is contained in:
parent
5bd61116a2
commit
4691aa8415
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ public abstract class ExoHostedTest implements AnalyticsListener, HostedTest {
|
|||
@Override
|
||||
public final void onFinished() {
|
||||
if (failOnPlayerError && playerError != null) {
|
||||
throw new Error(playerError);
|
||||
throw new RuntimeException(playerError);
|
||||
}
|
||||
logMetrics(audioDecoderCounters, videoDecoderCounters);
|
||||
if (expectedPlayingTimeMs != EXPECTED_PLAYING_TIME_UNSET) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue