Skip to content

Commit 6205d4a

Browse files
Update tests/test_connection.py
Co-authored-by: Copilot <[email protected]>
1 parent 5023ed4 commit 6205d4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def test_connect_without_retry_on_non_retryable_error(self):
136136

137137
def test_connect_with_retries(self):
138138
"""
139-
Test that the _connect function is not being retried in case of a CancelledError -
140-
error that is not in the list of retry-able errors
139+
Validate that retries occur for the entire connect+handshake flow when OSError
140+
happens during the handshake phase.
141141
"""
142142
with patch.object(socket.socket, "sendall") as sendall:
143143
sendall.side_effect = OSError(ECONNREFUSED)

0 commit comments

Comments
 (0)