From 1f488a7bd10de395aafa9e0cb8f9eb335c404407 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 8 Mar 2023 21:26:03 -0500 Subject: [PATCH] [Test] Disable occasionally-failing TestReactor.test_advance_with_limits Depending on the output times given to Reactor.advance, specified limits on the change in one or more state variables can be exceeded by a wide margin. See #1453 --- test/python/test_reactor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/python/test_reactor.py b/test/python/test_reactor.py index 1df66fc61a..a9a3cd853c 100644 --- a/test/python/test_reactor.py +++ b/test/python/test_reactor.py @@ -285,6 +285,7 @@ def test_advance_limits(self): self.net.advance_limits = 0 * self.net.advance_limits - 1. self.assertEqual(self.net.advance_limits[ix], -1.) + @pytest.mark.xfail(reason="See GitHub Issue #1453") def test_advance_with_limits(self): def integrate(limit_H2 = None, apply=True): P0 = 10 * ct.one_atm @@ -296,8 +297,8 @@ def integrate(limit_H2 = None, apply=True): ix = self.net.global_component_index('H2', 0) self.assertEqual(self.net.advance_limits[ix], limit_H2) - tEnd = 1.0 - tStep = 1.e-3 + tEnd = 0.1 + tStep = 7e-4 nSteps = 0 t = tStep