Skip to content

Commit 26a30ae

Browse files
committed
Merge branch 'standard_ci_workflow' of https://github.com/JuliaControl/ModelPredictiveControl.jl into standard_ci_workflow
2 parents a78daa3 + 67604d9 commit 26a30ae

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎test/3_test_predictive_control.jl‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ end
729729

730730
@testitem "ExplicitMPC autodiff" setup=[SetupMPCtests] begin
731731
using .SetupMPCtests, ControlSystemsBase, LinearAlgebra
732-
using ForwardDiff
732+
using Logging, ForwardDiff
733733

734734
A = [0.9 0.08; -0.15 0.75]
735735
Bu = [0.005, 0.09]
@@ -743,7 +743,10 @@ end
743743
return moveinput!(mpc, [1.0])[1]
744744
end
745745
@test_nowarn first_move(0.5)
746-
@test_nowarn ForwardDiff.derivative(first_move, 0.5)
746+
errorlogger = ConsoleLogger(stderr, Logging.Error)
747+
@test_nowarn with_logger(errorlogger) do
748+
ForwardDiff.derivative(first_move, 0.5)
749+
end
747750

748751
end
749752

0 commit comments

Comments
 (0)