Reduce RemoteUnfoldTransitionReceiverTest flakiness

Test: RemoteUnfoldTransitionReceiverTest
Bug: 275270806
Change-Id: I36a25dc7031a56534446890bfdb9e455950c8ee7
This commit is contained in:
Nicolo' Mazzucato
2023-03-27 12:38:39 +00:00
parent c87de81d83
commit af23c02000

View File

@@ -126,7 +126,7 @@ class TestUnfoldProgressListener : UnfoldTransitionProgressProvider.TransitionPr
}
fun assertLastProgress(progress: Float) {
assertThat(progressHistory.last()).isWithin(1.0E-4F).of(progress)
waitForCondition { progress == progressHistory.last() }
}
}