Skip to content

Commit 67c1c5f

Browse files
test: fix inconsistent initialization
1 parent 990ddb6 commit 67c1c5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parameter_dependencies.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using SymbolicIndexingInterface
1010
using NonlinearSolve
1111

1212
@testset "ODESystem with callbacks" begin
13-
@parameters p1=1.0 p2=1.0
13+
@parameters p1=1.0 p2
1414
@variables x(t)
1515
cb1 = [x ~ 2.0] => [p1 ~ 2.0] # triggers at t=-2+√6
1616
function affect1!(integ, u, p, ctx)
@@ -31,7 +31,7 @@ using NonlinearSolve
3131
prob = ODEProblem(sys, [x => 1.0], (0.0, 1.5), jac = true)
3232
@test prob.ps[p1] == 1.0
3333
@test prob.ps[p2] == 2.0
34-
@test_nowarn solve(prob, Tsit5())
34+
@test SciMLBase.successful_retcode(solve(prob, Tsit5()))
3535
prob = ODEProblem(sys, [x => 1.0], (0.0, 1.5), [p1 => 1.0], jac = true)
3636
@test prob.ps[p1] == 1.0
3737
@test prob.ps[p2] == 2.0

0 commit comments

Comments
 (0)