Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Nov 15, 2023
1 parent 51c19e4 commit 139e5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common_interface/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function condition2(u, t, integrator)
end
affect2!(integrator) = terminate!(integrator)
times_finalize_called = 0
cb = DiscreteCallback(condition2, affect2!, finalize=(args...)->times_finalize_called+=1)
cb = DiscreteCallback(condition2, affect2!, finalize=(args...)->global times_finalize_called+=1)
sol = solve(prob, CVODE_BDF(); callback = cb)
@test sol.t[end] < 3.5
@test times_finalize_called = 1
Expand Down

0 comments on commit 139e5a9

Please sign in to comment.