mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
Add time units to playing time failure message in ExoHostedTest
PiperOrigin-RevId: 339864290
This commit is contained in:
parent
6a5b53355b
commit
c71f1b04e9
@ -168,7 +168,7 @@ public abstract class ExoHostedTest implements AnalyticsListener, HostedTest {
|
|||||||
long minAllowedActualPlayingTimeMs = playingTimeToAssertMs - MAX_PLAYING_TIME_DISCREPANCY_MS;
|
long minAllowedActualPlayingTimeMs = playingTimeToAssertMs - MAX_PLAYING_TIME_DISCREPANCY_MS;
|
||||||
long maxAllowedActualPlayingTimeMs = playingTimeToAssertMs + MAX_PLAYING_TIME_DISCREPANCY_MS;
|
long maxAllowedActualPlayingTimeMs = playingTimeToAssertMs + MAX_PLAYING_TIME_DISCREPANCY_MS;
|
||||||
assertWithMessage(
|
assertWithMessage(
|
||||||
"Total playing time: " + totalPlayingTimeMs + ". Expected: " + playingTimeToAssertMs)
|
"Total playing time: %sms. Expected: %sms", totalPlayingTimeMs, playingTimeToAssertMs)
|
||||||
.that(
|
.that(
|
||||||
minAllowedActualPlayingTimeMs <= totalPlayingTimeMs
|
minAllowedActualPlayingTimeMs <= totalPlayingTimeMs
|
||||||
&& totalPlayingTimeMs <= maxAllowedActualPlayingTimeMs)
|
&& totalPlayingTimeMs <= maxAllowedActualPlayingTimeMs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user