diff options
-rw-r--r-- | spec/ruby/core/process/fixtures/clocks.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb index 15297e6e6f..5d6edebfc9 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -13,12 +13,10 @@ module ProcessSpecs # These clocks in practice on Linux do not seem to match # their reported resolution. clocks -= [:CLOCK_REALTIME_COARSE, :CLOCK_MONOTONIC_COARSE] - - clocks.map! { |c| - [c, Process.const_get(c)] - } end - clocks + clocks.map { |c| + [c, Process.const_get(c)] + } end end |