From 303e5e771860100e5a0517483a24aab8e1683816 Mon Sep 17 00:00:00 2001 From: Baruch Tabanpour Date: Tue, 3 Sep 2024 15:05:52 -0700 Subject: [PATCH] Fix test threshold for external tests. PiperOrigin-RevId: 670720396 Change-Id: I28bff46535ffdd99724c75f8137834d84c3ec534 --- mjx/mujoco/mjx/_src/solver_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjx/mujoco/mjx/_src/solver_test.py b/mjx/mujoco/mjx/_src/solver_test.py index 51722940..f29bd68e 100644 --- a/mjx/mujoco/mjx/_src/solver_test.py +++ b/mjx/mujoco/mjx/_src/solver_test.py @@ -95,7 +95,7 @@ class SolverTest(parameterized.TestCase): # lower (due to slight differences in the MJX linsearch algorithm) mj_cost = cost(d.qacc) mjx_cost = cost(dx.qacc) - self.assertLess(mjx_cost, mj_cost * 1.01) + self.assertLess(mjx_cost, mj_cost * 1.015) def test_no_warmstart(self): """Test no warmstart."""