Fix acme race condition (#6892)

* Fix acme race condition.

* Assert process has executed.
This commit is contained in:
Brad Warren
2019-03-27 21:27:38 +01:00
committed by Adrien Ferrand
parent 414c70aa6c
commit 8b8fc5ae54
+4
View File
@@ -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')