Merge "Fix broken FoldAodAnimationControllerTest test" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2023-01-17 19:59:43 +00:00
committed by Android (Google) Code Review

View File

@@ -175,8 +175,10 @@ class FoldAodAnimationControllerTest : SysuiTestCase() {
fold()
underTest.onScreenTurningOn({})
underTest.onStartedWakingUp()
// The body of onScreenTurningOn is executed on fakeExecutor,
// run all pending tasks before calling the next method
fakeExecutor.runAllReady()
underTest.onStartedWakingUp()
verify(latencyTracker).onActionStart(any())
verify(latencyTracker).onActionCancel(any())