diff --git a/test/common_interface/callbacks.jl b/test/common_interface/callbacks.jl index ff540e8..a2e6a37 100644 --- a/test/common_interface/callbacks.jl +++ b/test/common_interface/callbacks.jl @@ -58,7 +58,7 @@ times_finalize_called = 0 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 +@test times_finalize_called == 1 condition3(u, t, integrator) = u[2] affect3!(integrator) = terminate!(integrator)