Skip to content

Commit 2d6590b

Browse files
committed
Update
1 parent ec09399 commit 2d6590b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_model.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,14 @@ function _test_printing()
260260
]
261261
@test occursin(line, contents)
262262
end
263+
@test MOI.supports(model, MOI.Silent())
264+
@test MOI.get(model, MOI.Silent()) == false
265+
MOI.set(model, MOI.Silent(), true)
266+
open(joinpath(dir, "log2.txt"), "w") do io
267+
redirect_stdout(() -> MOI.optimize!(model), io)
268+
return
269+
end
270+
@test read(joinpath(dir, "log2.txt"), String) == ""
263271
return
264272
end
265273

0 commit comments

Comments
 (0)