Skip to content

Commit c77de91

Browse files
committed
Update
1 parent 182c6d4 commit c77de91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Bridges/Objective/SlackBridge.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function test_SlackBridge_ObjectiveSense_modify()
4646
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
4747
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
4848
@test_throws(
49-
ArgumentError,
49+
MOI.SetAttributeNotAllowed,
5050
MOI.set(model, MOI.ObjectiveSense(), MOI.MAX_SENSE),
5151
)
5252
MOI.set(model, MOI.ObjectiveSense(), MOI.FEASIBILITY_SENSE)
@@ -328,7 +328,8 @@ function test_original()
328328
("y", MOI.GreaterThan{Float64}(2.0)),
329329
],
330330
)
331-
err = ArgumentError(
331+
err = MOI.SetAttributeNotAllowed(
332+
MOI.ObjectiveSense(),
332333
"Objective bridge of type `$(MOI.Bridges.Objective.SlackBridge{Float64,MOI.ScalarQuadraticFunction{Float64},MOI.ScalarQuadraticFunction{Float64}})`" *
333334
" does not support modifying the objective sense. As a workaround, set" *
334335
" the sense to `MOI.FEASIBILITY_SENSE` to clear the objective function" *

0 commit comments

Comments
 (0)