summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-03-24 05:53:53 (GMT)
committerTakashi Kokubun <takashikkbn@gmail.com>2020-03-24 05:53:54 (GMT)
commiteff0c5bf2ad47d10a440c5211be5eddb3bbf4028 (patch)
tree14a3d8ae9b49ca0534190a72ab76ada030fc084f
parent5c4847f191eee0dc519a92fcb56c3dc38f075816 (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
-rw-r--r--spec/ruby/core/process/clock_getres_spec.rb2
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 764b8ff..1d5dd7c 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