Merge "Fix TestUnfoldProgressListener when there are no progress" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2023-04-03 15:36:45 +00:00
committed by Android (Google) Code Review

View File

@@ -126,7 +126,7 @@ class TestUnfoldProgressListener : UnfoldTransitionProgressProvider.TransitionPr
}
fun assertLastProgress(progress: Float) {
waitForCondition { progress == progressHistory.last() }
waitForCondition { progress == progressHistory.lastOrNull() }
}
}