From ad13a3334cfded6fddfc0a15fbd16d14636e9a9e Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 29 Nov 2023 15:34:36 +1300 Subject: [PATCH] Fix test for MOI v1.23.0 (#333) --- test/optimizer_setup.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/optimizer_setup.jl b/test/optimizer_setup.jl index d38249b55..5a0ebb49b 100644 --- a/test/optimizer_setup.jl +++ b/test/optimizer_setup.jl @@ -44,7 +44,10 @@ end # test without inheritance @test isa(set_optimizer_model(m, Model(), inherit_optimizer = false), Nothing) @test length(optimizer_model(m).ext) == 0 - @test_throws ErrorException time_limit_sec(optimizer_model(m)) + @test_throws( + Union{ErrorException,MOI.GetAttributeNotAllowed{MOI.TimeLimitSec}}, + time_limit_sec(optimizer_model(m)), + ) @test_throws NoOptimizer optimize!(optimizer_model(m)) end # optimizer_model_key (optimizer models)