Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 232 Bytes
require 'test/unit'
class TestSleep < Test::Unit::TestCase
def test_sleep_5sec
start = Time.now
sleep 5
slept = Time.now-start
assert_in_delta(5.0, slept, 0.1, "[ruby-core:18015]: longer than expected")
end
end
Jump to Line
Something went wrong with that request. Please try again.