Skip to content

Commit 61baf23

Browse files
authored
Allow get to return non-nothing (#2370)
1 parent 010f846 commit 61baf23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Test/test_attribute.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ function test_attribute_TimeLimitSec(model::MOI.AbstractOptimizer, ::Config)
184184
MOI.set(model, MOI.TimeLimitSec(), 1.0)
185185
@test MOI.get(model, MOI.TimeLimitSec()) == 1.0
186186
MOI.set(model, MOI.TimeLimitSec(), nothing)
187-
@test _get_default(model) === nothing
187+
reset_value = _get_default(model)
188+
@test reset_value === nothing || reset_value == value
188189
MOI.set(model, MOI.TimeLimitSec(), value)
189190
return
190191
end

0 commit comments

Comments
 (0)