Skip to content

Commit c770a95

Browse files
chore(deps): update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.9.1 (#440)
* Improved stability of tests.
1 parent 19d8692 commit c770a95

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

app/src/androidTest/java/com/mitteloupe/whoami/screen/HomeScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ class HomeScreen {
6363
}
6464

6565
private fun ComposeContentTestRule.assertIsDisplayed(matcher: SemanticsMatcher) {
66-
waitUntilExactlyOneExists(matcher, timeoutMillis = 5_000L)
66+
waitUntilExactlyOneExists(matcher, timeoutMillis = 15_000L)
6767
}
6868
}

app/src/androidTest/java/com/mitteloupe/whoami/test/HistoryTest.kt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,20 @@ class HistoryTest : BaseTest() {
3333
@LocalStore(localStoreDataIds = [KEY_VALUE_SAVED_HISTORY])
3434
fun givenSavedHistoryWhenOnHistoryScreenThenSeesHistory() {
3535
with(historyScreen) {
36-
seeRecord(position = 1, ipAddress = "2.2.2.2", city = "Stockholm", postCode = "12345")
37-
seeRecord(position = 2, ipAddress = "1.1.1.1", city = "Aberdeen", postCode = "AA11 2BB")
36+
retry(repeat = 20) {
37+
seeRecord(
38+
position = 1,
39+
ipAddress = "2.2.2.2",
40+
city = "Stockholm",
41+
postCode = "12345"
42+
)
43+
seeRecord(
44+
position = 2,
45+
ipAddress = "1.1.1.1",
46+
city = "Aberdeen",
47+
postCode = "AA11 2BB"
48+
)
49+
}
3850
}
3951
}
4052

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ androidx-appcompat = "1.7.1"
66
androidx-core-ktx = "1.16.0"
77
androidx-fragment-ktx = "1.8.8"
88
androidx-recyclerview = "1.4.0"
9-
androidx-lifecycle-runtime-ktx = "2.9.0"
9+
androidx-lifecycle-runtime-ktx = "2.9.1"
1010
android-navigation = "2.9.0"
1111
compose-bom = "2025.06.00"
1212
compose-activity = "1.10.1"

0 commit comments

Comments
 (0)