diff --git a/test/scheduler/scheduler.rb b/test/scheduler/scheduler.rb index b2d36cc728..820f441dcd 100644 --- a/test/scheduler/scheduler.rb +++ b/test/scheduler/scheduler.rb @@ -18,15 +18,13 @@ class Scheduler @ios = ObjectSpace::WeakMap.new end - attr :fiber - attr :readable attr :writable attr :waiting attr :blocking def next_timeout - fiber, timeout = @waiting.min_by{|key, value| value} + _fiber, timeout = @waiting.min_by{|key, value| value} if timeout offset = timeout - current_time diff --git a/test/scheduler/test_fiber.rb b/test/scheduler/test_fiber.rb index 3452591cd9..368065016e 100644 --- a/test/scheduler/test_fiber.rb +++ b/test/scheduler/test_fiber.rb @@ -24,6 +24,6 @@ class TestSchedulerFiber < Test::Unit::TestCase thread.join assert_not_empty scheduler.blocking - assert_match /test_fiber.rb:\d+:in `close'/, scheduler.blocking.last + assert_match(/test_fiber\.rb:\d+:in `close'/, scheduler.blocking.last) end end