@@ -307,11 +307,12 @@ function _test_dual(
307307 Bridge:: Type{<:AbstractBridge} ,
308308 input_fn:: Function ;
309309 dual,
310+ eltype,
310311 model_eltype,
311312)
312313 inner = MOI. Utilities. UniversalFallback (MOI. Utilities. Model {model_eltype} ())
313314 mock = MOI. Utilities. MockOptimizer (inner)
314- model = _bridged_model (Bridge{model_eltype }, mock)
315+ model = _bridged_model (Bridge{eltype }, mock)
315316 input_fn (model)
316317 final_touch (model)
317318 # Should be able to call final_touch multiple times.
@@ -331,13 +332,10 @@ function _test_dual(
331332 MOI. set (model, MOI. ConstraintDual (), ci, _fake_start (dual, set))
332333 end
333334 end
334- model_dual = MOI. Utilities. get_fallback (
335- model,
336- MOI. DualObjectiveValue (),
337- model_eltype,
338- )
335+ model_dual =
336+ MOI. Utilities. get_fallback (model, MOI. DualObjectiveValue (), eltype)
339337 mock_dual =
340- MOI. Utilities. get_fallback (mock, MOI. DualObjectiveValue (), model_eltype )
338+ MOI. Utilities. get_fallback (mock, MOI. DualObjectiveValue (), eltype )
341339 # Need `atol` in case one of them is zero and the other one almost zero
342340 Test. @test model_dual ≈ mock_dual atol = 1e-6
343341end
@@ -455,7 +453,7 @@ function _runtests(
455453 end
456454 if ! isnothing (dual)
457455 Test. @testset " Test ConstraintDual" begin
458- _test_dual (Bridge, input_fn; dual, model_eltype)
456+ _test_dual (Bridge, input_fn; dual, eltype, model_eltype)
459457 end
460458 end
461459 return
0 commit comments