From 785f3cbd50492c1a4fe52721ceb6588d82331cba Mon Sep 17 00:00:00 2001 From: Philip Quinn Date: Fri, 14 Jul 2023 14:52:45 -0700 Subject: [PATCH] Increase the error tolerance for MotionPredictorTest. Failure with the new model: expected:<30.0> but was:<24.353516> Bug: 288354672 Test: atest MotionPredictorTest Change-Id: Id02b0f7d132e30d2f2a20914ad7ce6377dd42f61 --- tests/Input/src/com/android/test/input/MotionPredictorTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Input/src/com/android/test/input/MotionPredictorTest.kt b/tests/Input/src/com/android/test/input/MotionPredictorTest.kt index 24a567130ff00..d3eeac147c2a1 100644 --- a/tests/Input/src/com/android/test/input/MotionPredictorTest.kt +++ b/tests/Input/src/com/android/test/input/MotionPredictorTest.kt @@ -129,7 +129,7 @@ class MotionPredictorTest { // Prediction will happen for t=12 (since it is the next input interval after the requested // time, 8, plus the model offset, 1). assertEquals(12, predicted!!.eventTime) - assertEquals(30f, predicted.x, /*delta=*/5f) + assertEquals(30f, predicted.x, /*delta=*/10f) assertEquals(60f, predicted.y, /*delta=*/15f) } }