Skip to content

Commit 1639b4d

Browse files
committed
try to fix test
1 parent 9e74190 commit 1639b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ssa_callback_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ function fuel_affect!(integrator)
2525
end
2626
cb = DiscreteCallback(condition, fuel_affect!, save_positions = (false, true))
2727

28-
sol = solve(jump_prob, SSAStepper(), callback = cb, tstops = [5])
28+
sol = solve(jump_prob, SSAStepper(); callback = cb, tstops = [5])
2929
@test sol.t[1:2] == [0.0, 5.0] # no jumps between t=0 and t=5
3030
@test sol(5 + 1e-10) == [100, 0] # state just after fueling before any decays can happen
3131

3232
# test can pass callbacks via JumpProblem
3333
jump_prob2 = JumpProblem(prob, Direct(), jump; rng = rng, callback = cb)
34-
sol2 = solve(jump_prob2, SSAStepper(), tstops = [5])
34+
sol2 = solve(jump_prob2, SSAStepper(); tstops = [5])
3535
@test sol2.t[1:2] == [0.0, 5.0] # no jumps between t=0 and t=5
3636
@test sol2(5 + 1e-10) == [100, 0] # state just after fueling before any decays can happen
3737

0 commit comments

Comments
 (0)