Skip to content

Commit

Permalink
fix one missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
zengjian-hu-rai committed Sep 27, 2023
1 parent 3a4f8a0 commit ccd9d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ function test_highs_optimization_time_limit()
MOI.set(solver, MOI.TimeLimitSec(), 9e-4) # Very small limit
index_map, _ = MOI.optimize!(solver, model)
@test !isnan(MOI.get(solver, MOI.SolveTimeSec()))
@test MOI.get(solver, MOI.TerminationStatus()) === MOI.OTHER_ERROR
@test MOI.get(solver, MOI.TerminationStatus()) === MOI.TIME_LIMIT
solver = MiniZinc.Optimizer{Float64}("highs")
MOI.set(solver, MOI.TimeLimitSec(), 100)
index_map, _ = MOI.optimize!(solver, model)
Expand Down

0 comments on commit ccd9d9f

Please sign in to comment.