1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/logger] Fixed leaked tempfile

https://github.com/ruby/logger/commit/fb3eff153f
This commit is contained in:
Nobuyoshi Nakada 2019-12-16 12:33:13 +09:00
parent 4f9a4c1a8f
commit 9421c78041
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -276,7 +276,7 @@ class TestLogDevice < Test::Unit::TestCase
end
def test_invalid_shifting_age
assert_raise(ArgumentError) { Logger.new(@filename, 'invalid') }
assert_raise(ArgumentError) { Logger::Period.next_rotate_time(Time.now, 'invalid') }
assert_raise(ArgumentError) { Logger::Period.previous_period_end(Time.now, 'invalid') }
end