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:
parent
4f9a4c1a8f
commit
9421c78041
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue