diff --git a/src/Test/test_objective.jl b/src/Test/test_objective.jl index d160a29dbb..9ced9ee3a2 100644 --- a/src/Test/test_objective.jl +++ b/src/Test/test_objective.jl @@ -192,7 +192,7 @@ function test_objective_ObjectiveFunction_blank( MOI.set(model, obj_attr, f) MOI.optimize!(model) @test MOI.get(model, MOI.TerminationStatus()) == config.optimal_status - @test MOI.get(model, MOI.ObjectiveValue()) == T(0) + @test isapprox(MOI.get(model, MOI.ObjectiveValue()), T(0), config) return end