Refactor logic in Process.clock_gettime spec

This commit is contained in:
Benoit Daloze 2019-04-28 14:36:03 +02:00
Родитель fc37a045a0
Коммит 16695af0ef
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

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