Made the specs for .sleep test more lax.

This commit is contained in:
Peter Camilleri 2015-01-14 16:07:57 -05:00
parent 7fbd7a2c4f
commit c5e8bd06ba

View file

@ -27,8 +27,8 @@ class ThreadLibraryTester < MiniTest::Unit::TestCase
start = Time.now
foorth_equal('0.05 .sleep', [])
finish = Time.now
assert(finish-start > 0.04)
assert(finish-start < 0.06)
assert(finish-start > 0.03)
assert(finish-start < 0.1)
end
def test_creating_a_thread