Skip to content

Commit 157966e

Browse files
Merge pull request #3455 from AayushSabharwal/as/relax-test
test: relax initializationsystem test
2 parents 6c33eb3 + d3a8f8d commit 157966e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/initializationsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ prob = ODEProblem(pend, [x => 1], (0.0, 1.5), [g => 1],
473473

474474
unsimp = generate_initializesystem(pend; u0map = [x => 1], initialization_eqs = [y ~ 1])
475475
sys = structural_simplify(unsimp; fully_determined = false)
476-
@test length(equations(sys)) == 3
476+
@test length(equations(sys)) in (3, 4) # could be either depending on tearing
477477

478478
# Extend two systems with initialization equations and guesses
479479
# https://github.com/SciML/ModelingToolkit.jl/issues/2845

0 commit comments

Comments
 (0)