Commit da4142e8 authored by Denis Bilenko's avatar Denis Bilenko

test__greenlet.py: fix occassional timing issue by increasing sleep time

parent a9a641a5
...@@ -569,10 +569,10 @@ class TestBasic(greentest.TestCase): ...@@ -569,10 +569,10 @@ class TestBasic(greentest.TestCase):
error = ExpectedError('test_error_exit') error = ExpectedError('test_error_exit')
error.myattr = return_value error.myattr = return_value
raise error raise error
g = gevent.Greenlet(func, 0.01, return_value=5) g = gevent.Greenlet(func, 0.001, return_value=5)
g.link(lambda x: link_test.append(x)) g.link(lambda x: link_test.append(x))
g.start() g.start()
gevent.sleep(0.02) gevent.sleep(0.1)
assert not g assert not g
assert g.dead assert g.dead
assert not g.started assert not g.started
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment