This commit is contained in:
Itamar Turner-Trauring 2022-11-18 15:26:02 -05:00
parent aeaced848d
commit 8cfdae2ab4

View File

@ -183,6 +183,10 @@ class PinningHTTPSValidation(AsyncTestCase):
response = await self.request(url, certificate)
self.assertEqual(await response.content(), b"YOYODYNE")
# We keep getting TLSMemoryBIOProtocol being left around, so try harder
# to wait for it to finish.
await deferLater(reactor, 0.01)
@async_to_deferred
async def test_server_certificate_not_valid_yet(self):
"""