From 9421c7804191b73aa9fde8f14235b3a1f37ffd4b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 16 Dec 2019 12:33:13 +0900 Subject: [PATCH] [ruby/logger] Fixed leaked tempfile https://github.com/ruby/logger/commit/fb3eff153f --- test/logger/test_logdevice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb index 5adf06eb57..eaea4c8522 100644 --- a/test/logger/test_logdevice.rb +++ b/test/logger/test_logdevice.rb @@ -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