Skip to content

Commit fe06559

Browse files
fix alloccheck
1 parent ee19d77 commit fe06559

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/integrators/callback_allocation_tests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ integrator = init(
3939
# call handle callbacks
4040
step!(integrator, 0.1, true)
4141

42-
function handle_allocs(integrator)
42+
@check_allocs function handle_allocs(integrator)
4343
integrator.u[1] = 0.4
4444
OrdinaryDiffEqCore.handle_callbacks!(integrator)
4545
end
46-
handle_allocs(integrator)
47-
@check_allocs handle_allocs(integrator)
46+
handle_allocs(integrator)

0 commit comments

Comments
 (0)