mirror of https://github.com/python/cpython
asyncio: Hopeful fix for issue 19765.
This commit is contained in:
parent
14c3e14053
commit
27bfe468cc
|
@ -560,6 +560,7 @@ class EventLoopTestsMixin:
|
||||||
client.connect(('127.0.0.1', port))
|
client.connect(('127.0.0.1', port))
|
||||||
client.sendall(b'xxx')
|
client.sendall(b'xxx')
|
||||||
test_utils.run_briefly(self.loop)
|
test_utils.run_briefly(self.loop)
|
||||||
|
test_utils.run_until(self.loop, lambda: proto is not None, 10)
|
||||||
self.assertIsInstance(proto, MyProto)
|
self.assertIsInstance(proto, MyProto)
|
||||||
self.assertEqual('INITIAL', proto.state)
|
self.assertEqual('INITIAL', proto.state)
|
||||||
test_utils.run_briefly(self.loop)
|
test_utils.run_briefly(self.loop)
|
||||||
|
|
Loading…
Reference in New Issue