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:
parent
fc37a045a0
commit
16695af0ef
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue