Skip to content

Commit 200694b

Browse files
author
Glyn Normington
committed
Attempt to fix build failure
Delete the log file after closing it in case doing it the other way round is the cause for the logger failing to be writable, as observed on Travis. [#54204032]
1 parent 00a6de2 commit 200694b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/java_buildpack/jre/memory/weight_balancing_memory_heuristic_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ module JavaBuildpack::Jre
4646
VALID_SIZES = %w(heap permgen stack)
4747

4848
before do
49-
File.delete(JavaBuildpack::Diagnostics.get_buildpack_log Dir.tmpdir)
5049
JavaBuildpack::Diagnostics::LoggerFactory.send :close # suppress warnings
50+
File.delete(JavaBuildpack::Diagnostics.get_buildpack_log Dir.tmpdir)
5151
JavaBuildpack::Diagnostics::LoggerFactory.create_logger Dir.tmpdir
5252
end
5353

0 commit comments

Comments
 (0)