Skip to content

Commit

Permalink
Increase test tolerances
Browse files Browse the repository at this point in the history
Fix test failures related to switching from macos-12 to macos-14-arm64.

Fixes AMICI-dev#2415.
  • Loading branch information
dweindl committed May 2, 2024
1 parent ba5479d commit 889f8d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/tests/test_sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def test_constraints():
# in practice
assert np.any(rdata.x < 0)

amici_solver.setRelativeTolerance(1e-14)
amici_solver.setRelativeTolerance(1e-13)
amici_solver.setConstraints(
[Constraint.non_negative, Constraint.non_negative]
)
Expand Down
4 changes: 2 additions & 2 deletions tests/cpp/steadystate/tests1.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "testfunctions.h"

#include "wrapfunctions.h"
#include <cstring>

#include <gtest/gtest.h>

Expand Down Expand Up @@ -175,7 +174,8 @@ TEST(ExampleSteadystate, SensitivityForwardErrorNewt)

TEST(ExampleSteadystate, SensitivityForwardDense)
{
amici::simulateVerifyWrite("/model_steadystate/sensiforwarddense/");
amici::simulateVerifyWrite("/model_steadystate/sensiforwarddense/",
1e-9, TEST_RTOL);
}

TEST(ExampleSteadystate, SensiFwdNewtonPreeq)
Expand Down

0 comments on commit 889f8d3

Please sign in to comment.