Skip to content

Commit

Permalink
test: re-enable logging output in tests to detect CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Strömer committed Nov 19, 2024
1 parent c647e9f commit 7105938
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils/testing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ end

@info "TestExampleModule" mode = "run" file = filename raw = cfg_name

m = @suppress generate!(String(Assets.get_path("examples", "$filename.iesopt.yaml")); kwargs...)
@suppress optimize!(m)
m = generate!(String(Assets.get_path("examples", "$filename.iesopt.yaml")); kwargs...)
optimize!(m)
@test JuMP.objective_value(m) obj atol = 0.1
@suppress safe_close_filelogger(m)
safe_close_filelogger(m)
return m
end

Expand All @@ -36,9 +36,9 @@ end

@info "TestExampleModule" mode = "run" file = filename raw = cfg_name

m = @suppress generate!(String(Assets.get_path("examples", "$filename.iesopt.yaml")); kwargs...)
@suppress optimize!(m)
@suppress safe_close_filelogger(m)
m = generate!(String(Assets.get_path("examples", "$filename.iesopt.yaml")); kwargs...)
optimize!(m)
safe_close_filelogger(m)
return m
end
end
Expand Down

0 comments on commit 7105938

Please sign in to comment.