Skip to content

Commit a61594d

Browse files
Bump android-gradle-plugin from 8.4.1 to 8.4.2 (#576)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gaëtan Muller <[email protected]>
1 parent 498045d commit a61594d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
accompanist = "0.34.0"
33
android-desugar-jdk-libs = "2.0.4"
4-
android-gradle-plugin = "8.4.1"
4+
android-gradle-plugin = "8.4.2"
55
androidx-activity = "1.9.0"
66
androidx-annotation = "1.8.0"
77
androidx-compose = "2024.05.00"

pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/PlayerCallbackFlowTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import kotlin.test.AfterTest
2121
import kotlin.test.BeforeTest
2222
import kotlin.test.Test
2323
import kotlin.test.assertEquals
24+
import kotlin.test.assertTrue
2425
import kotlin.time.Duration.Companion.milliseconds
2526

2627
@RunWith(AndroidJUnit4::class)
@@ -177,7 +178,9 @@ class PlayerCallbackFlowTest {
177178
TestPlayerRunHelper.runUntilPlaybackState(player, Player.STATE_READY)
178179

179180
player.getCurrentDefaultPositionAsFlow().test {
180-
assertEquals(6L, awaitItem().milliseconds.inWholeHours)
181+
val currentDefaultPositionInHours = awaitItem().milliseconds.inWholeHours
182+
183+
assertTrue(currentDefaultPositionInHours in 5..6)
181184
ensureAllEventsConsumed()
182185
}
183186
}

0 commit comments

Comments
 (0)