Skip to content

Commit

Permalink
suppress some logs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Jul 16, 2024
1 parent 0dabbd5 commit 845f1e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ end
"""
)
@test_throws(ArgumentError("initial or final parameters in io do not satisfy lowerbd"),
restoreoptsum!(m, seekstart(iob)))
@suppress restoreoptsum!(m, seekstart(iob)))

# make sure new fields are correctly restored
mktemp() do path, io
Expand All @@ -638,15 +638,15 @@ end
saveoptsum(io, m)
m.optsum.xtol_zero_abs = 1.0
m.optsum.ftol_zero_abs = 1.0
restoreoptsum!(m, seekstart(io))
@suppress restoreoptsum!(m, seekstart(io))
@test m.optsum.xtol_zero_abs == 0.5
@test m.optsum.ftol_zero_abs == 0.5
end

end

@testset "profile" begin
pr = profile(last(models(:sleepstudy)))
pr = @suppress profile(last(models(:sleepstudy)))
tbl = pr.tbl
@test length(tbl) >= 122
ci = confint(pr)
Expand Down

0 comments on commit 845f1e6

Please sign in to comment.