diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-03-23 22:53:53 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-03-23 22:53:54 -0700 |
commit | eff0c5bf2ad47d10a440c5211be5eddb3bbf4028 (patch) | |
tree | 14a3d8ae9b49ca0534190a72ab76ada030fc084f /spec/ruby/core/process | |
parent | 5c4847f191eee0dc519a92fcb56c3dc38f075816 (diff) |
Try to avoid random failures on clock_getres_spec.rb
This spec fails too often
https://github.com/ruby/ruby/runs/529546249
https://github.com/ruby/ruby/runs/524933256
Diffstat (limited to 'spec/ruby/core/process')
-rw-r--r-- | spec/ruby/core/process/clock_getres_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/process/clock_getres_spec.rb b/spec/ruby/core/process/clock_getres_spec.rb index 764b8ff03a..1d5dd7c684 100644 --- a/spec/ruby/core/process/clock_getres_spec.rb +++ b/spec/ruby/core/process/clock_getres_spec.rb @@ -8,7 +8,7 @@ describe "Process.clock_getres" do # NOTE: Look at fixtures/clocks.rb for clock and OS-specific exclusions ProcessSpecs.clock_constants_for_resolution_checks.each do |name, value| it "matches the clock in practice for Process::#{name}" do - times = 10_000.times.map { Process.clock_gettime(value, :nanosecond) } + times = 100_000.times.map { Process.clock_gettime(value, :nanosecond) } reported = Process.clock_getres(value, :nanosecond) # The clock should not be more accurate than reported (times should be |