Fix TestUnfoldProgressListener when there are no progress
.last() was failing when there was still no progress. Test: RemoteUnfoldTransitionReceiverTest Bug: 276407993 Change-Id: I82afe7a94e29975b96c749885fcbf87a0eeaa89c
This commit is contained in:
@@ -126,7 +126,7 @@ class TestUnfoldProgressListener : UnfoldTransitionProgressProvider.TransitionPr
|
||||
}
|
||||
|
||||
fun assertLastProgress(progress: Float) {
|
||||
waitForCondition { progress == progressHistory.last() }
|
||||
waitForCondition { progress == progressHistory.lastOrNull() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user