mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Mocked sockets
This commit is contained in:
parent
d50de8516e
commit
d943b69b3d
3 changed files with 37 additions and 23 deletions
|
@ -168,7 +168,7 @@ class EPPLibWrapper:
|
|||
def _create_pool(self, client, login, options):
|
||||
"""Creates and returns new pool instance"""
|
||||
return EPPConnectionPool(
|
||||
client, login, options
|
||||
client, login, options
|
||||
)
|
||||
|
||||
def start_connection_pool(
|
||||
|
@ -190,8 +190,8 @@ class EPPLibWrapper:
|
|||
# one socket, and if successful, then we know we can connect.
|
||||
if (
|
||||
not try_start_if_invalid
|
||||
and settings.DEBUG
|
||||
or not self._test_registry_connection_success()
|
||||
and (settings.DEBUG
|
||||
or not self._test_registry_connection_success())
|
||||
):
|
||||
logger.warning("Cannot contact the Registry")
|
||||
self.pool_status.connection_success = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue