diff --git a/product/ERP5Type/tests/ProcessingNodeTestCase.py b/product/ERP5Type/tests/ProcessingNodeTestCase.py index 95f1bd0843578e8b7b369bffbb810966eda53a86..4025ad6eb5cfc26bd1be89e18461df7d222aefdd 100644 --- a/product/ERP5Type/tests/ProcessingNodeTestCase.py +++ b/product/ERP5Type/tests/ProcessingNodeTestCase.py @@ -151,7 +151,9 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase): for ip, port in parseListeningAddress(zserver): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: + s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((ip, port)) + s.listen(0) except socket.error as e: s.close() if e[0] != errno.EADDRINUSE: