From af23c02000acb19664545e0d38a4dc263851cb33 Mon Sep 17 00:00:00 2001 From: Nicolo' Mazzucato Date: Mon, 27 Mar 2023 12:38:39 +0000 Subject: [PATCH] Reduce RemoteUnfoldTransitionReceiverTest flakiness Test: RemoteUnfoldTransitionReceiverTest Bug: 275270806 Change-Id: I36a25dc7031a56534446890bfdb9e455950c8ee7 --- .../systemui/unfold/progress/TestUnfoldProgressListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/TestUnfoldProgressListener.kt b/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/TestUnfoldProgressListener.kt index 1ce25725b2980..39ea46a657f28 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/TestUnfoldProgressListener.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/TestUnfoldProgressListener.kt @@ -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() } } }