Commit c71f1b04 by ibaker Committed by Oliver Woodman

Add time units to playing time failure message in ExoHostedTest

PiperOrigin-RevId: 339864290
parent 6a5b5335
...@@ -168,7 +168,7 @@ public abstract class ExoHostedTest implements AnalyticsListener, HostedTest { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment