Commit 20a3b165 authored by Denis Bilenko's avatar Denis Bilenko

fix the test not use deprecated function

parent bee27f63
......@@ -226,7 +226,7 @@ class TestChannel(TestCase):
channel.send('world')
events.append('sent world')
g = proc.spawn_greenlet(another_greenlet)
g = proc.spawn(another_greenlet)
events.append('waiting')
events.append(channel.wait())
......@@ -235,6 +235,7 @@ class TestChannel(TestCase):
self.assertEqual(['waiting', 'sending hello', 'hello', 'sending world', 'world'], events)
gevent.sleep(0)
self.assertEqual(['waiting', 'sending hello', 'hello', 'sending world', 'world', 'sent world'], events)
g.wait(timeout=0)
if __name__=='__main__':
......
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