aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 06ccafc987..c77cbabee8 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1700,7 +1700,7 @@ EOS
next
end
t1 = Process.clock_gettime(Process::CLOCK_REALTIME, unit)
- assert_kind_of num.class, t1, [unit, num].inspect
+ assert_kind_of num.integer? ? Integer : num.class, t1, [unit, num].inspect
assert_in_delta t0, t1/num, 1, [unit, num].inspect
end
end