mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)
Reduces the rate at which the ENV CHANGED failure occurs in test_asyncio SSL tests (due to unclosed transport), but does not 100% resolve it.
(cherry picked from commit de73d432bb
)
Co-authored-by: Justin Turner Arthur <justinarthur@gmail.com>
This commit is contained in:
parent
72ce82abcf
commit
e43bee7e11
2 changed files with 3 additions and 0 deletions
|
@ -1075,6 +1075,7 @@ class EventLoopTestsMixin:
|
||||||
ssl=sslcontext_client,
|
ssl=sslcontext_client,
|
||||||
server_hostname='localhost')
|
server_hostname='localhost')
|
||||||
client, pr = self.loop.run_until_complete(f_c)
|
client, pr = self.loop.run_until_complete(f_c)
|
||||||
|
self.loop.run_until_complete(proto.connected)
|
||||||
|
|
||||||
# close connection
|
# close connection
|
||||||
proto.transport.close()
|
proto.transport.close()
|
||||||
|
@ -1100,6 +1101,7 @@ class EventLoopTestsMixin:
|
||||||
ssl=sslcontext_client,
|
ssl=sslcontext_client,
|
||||||
server_hostname='localhost')
|
server_hostname='localhost')
|
||||||
client, pr = self.loop.run_until_complete(f_c)
|
client, pr = self.loop.run_until_complete(f_c)
|
||||||
|
self.loop.run_until_complete(proto.connected)
|
||||||
|
|
||||||
# extra info is available
|
# extra info is available
|
||||||
self.check_ssl_extra_info(client, peername=(host, port),
|
self.check_ssl_extra_info(client, peername=(host, port),
|
||||||
|
|
|
@ -70,6 +70,7 @@ Alexandru Ardelean
|
||||||
Emmanuel Arias
|
Emmanuel Arias
|
||||||
Alicia Arlen
|
Alicia Arlen
|
||||||
Jeffrey Armstrong
|
Jeffrey Armstrong
|
||||||
|
Justin Turner Arthur
|
||||||
Jason Asbahr
|
Jason Asbahr
|
||||||
David Ascher
|
David Ascher
|
||||||
Ammar Askar
|
Ammar Askar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue