Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Fix a bug that the wrong log file is reopened with log rotate setting when flushing or graceful reloading #4054

Merged
merged 9 commits into from
Feb 16, 2023
7 changes: 2 additions & 5 deletions test/test_logger_initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
class LoggerInitializerTest < ::Test::Unit::TestCase
TMP_DIR = File.expand_path(File.dirname(__FILE__) + "/tmp/logger_initializer#{ENV['TEST_ENV_NUMBER']}")

teardown do
begin
FileUtils.rm_rf(TMP_DIR)
rescue => _
end
setup do
FileUtils.rm_rf(TMP_DIR) rescue nil
ashie marked this conversation as resolved.
Show resolved Hide resolved
end

test 'when path is given' do
Expand Down