diff --git a/test/basictests.jl b/test/basictests.jl index 35a34f3d6..fbd814f3e 100644 --- a/test/basictests.jl +++ b/test/basictests.jl @@ -49,13 +49,13 @@ end @test (@ballocated solve!($cache)) < 200 end - precs = [ - NonlinearSolve.DEFAULT_PRECS, - (args...) -> (Diagonal(rand!(similar(u0))), nothing), - ] - @testset "[IIP] u0: $(typeof(u0)) precs: $(_nameof(prec)) linsolve: $(_nameof(linsolve))" for u0 in ([ - 1.0, 1.0],), prec in precs, linsolve in (nothing, KrylovJL_GMRES()) + 1.0, 1.0],), + prec in [ + NonlinearSolve.DEFAULT_PRECS, + (args...) -> (Diagonal(rand!(similar(u0))), nothing), + ], linsolve in (nothing, KrylovJL_GMRES()) + ad isa AutoZygote && continue if prec === :Random prec = (args...) -> (Diagonal(randn!(similar(u0))), nothing)