Skip to content

Commit d2d12b9

Browse files
authored
Merge pull request #858 from SimonMarquis/patch-10
Add missing `allowNotifications()` in `BaselineProfileGenerator.kt`
2 parents 014d388 + 22ff97b commit d2d12b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

benchmarks/src/main/java/com/google/samples/apps/nowinandroid/baselineprofile/BaselineProfileGenerator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class BaselineProfileGenerator {
4343
allowNotifications()
4444
pressHome()
4545
startActivityAndWait()
46+
allowNotifications()
4647

4748
// Scroll the feed critical user journey
4849
forYouWaitForContent()

benchmarks/src/main/java/com/google/samples/apps/nowinandroid/interests/InterestsActions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fun MacrobenchmarkScope.goToInterestsScreen() {
3434
}
3535

3636
fun MacrobenchmarkScope.interestsScrollTopicsDownUp() {
37-
val topicsList = device.findObject(By.res("interests:topics"))
37+
val topicsList = device.wait(Until.findObject(By.res("interests:topics")), 2_000)
3838
device.flingElementDownUp(topicsList)
3939
}
4040

0 commit comments

Comments
 (0)