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

Refactor logic in Process.clock_gettime spec

This commit is contained in:
Benoit Daloze 2019-04-28 14:36:03 +02:00
parent fc37a045a0
commit 16695af0ef

View file

@ -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