Skip to content

Commit

Permalink
[Test] Disable occasionally-failing TestReactor.test_advance_with_limits
Browse files Browse the repository at this point in the history
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
  • Loading branch information
speth authored and ischoegl committed Mar 9, 2023
1 parent 0cb25ab commit 19d99b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/python/test_reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 19d99b2

Please sign in to comment.