mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
Change comment
This commit is contained in:
parent
f7591c2119
commit
03f7efc846
1 changed files with 10 additions and 4 deletions
|
@ -264,11 +264,17 @@ class TestClient(TestCase):
|
||||||
self.assertEquals(mock_send.call_count, 5)
|
self.assertEquals(mock_send.call_count, 5)
|
||||||
|
|
||||||
def test_send_command_close_failure_recovers(self):
|
def test_send_command_close_failure_recovers(self):
|
||||||
"""Test when the .close on a connection fails and a .send follows suit.
|
"""
|
||||||
|
Validates the resilience of the connection handling mechanism
|
||||||
|
during command execution on retry.
|
||||||
|
|
||||||
Scenario:
|
Scenario:
|
||||||
Initialization succeeds
|
- Initialization of the connection is successful.
|
||||||
Send command fails (with 2400 code) prompting retry
|
- An attempt to send a command fails with a specific error code (ConcurrentObjectUseError)
|
||||||
Client closes and re-initializes, and command succeeds"""
|
- The client attempts to retry.
|
||||||
|
- Subsequently, the client re-initializes the connection.
|
||||||
|
- A retry of the command execution post-reinitialization succeeds.
|
||||||
|
"""
|
||||||
|
|
||||||
expected_result = self.get_fake_epp_result()
|
expected_result = self.get_fake_epp_result()
|
||||||
wrapper = None
|
wrapper = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue