mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 20:12:42 +02:00
Fix acme race condition (#6892)
* Fix acme race condition. * Assert process has executed.
This commit is contained in:
committed by
Adrien Ferrand
parent
414c70aa6c
commit
8b8fc5ae54
@@ -280,6 +280,10 @@ class TestSimpleTLSSNI01Server(unittest.TestCase):
|
||||
os.chdir(self.old_cwd)
|
||||
if self.process.is_alive():
|
||||
self.process.terminate()
|
||||
self.process.join(timeout=5)
|
||||
# Check that we didn't timeout waiting for the process to
|
||||
# terminate.
|
||||
self.assertNotEqual(self.process.exitcode, None)
|
||||
shutil.rmtree(self.test_cwd)
|
||||
|
||||
@mock.patch('acme.standalone.TLSSNI01Server.handle_request')
|
||||
|
||||
Reference in New Issue
Block a user