mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ruby can delay arbitrarily because Ruby is not a realtime system,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a4c23163c
commit
50190956c2
1 changed files with 1 additions and 1 deletions
|
@ -156,6 +156,6 @@ BENCH
|
|||
def test_realtime_output
|
||||
sleeptime = 1.0
|
||||
realtime = Benchmark.realtime { sleep sleeptime }
|
||||
assert_in_epsilon sleeptime, realtime
|
||||
assert_operator sleeptime, :<, realtime
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue