Skip to content

Commit 56498e3

Browse files
mykauldkropachev
authored andcommitted
tests: fix flaky SSL test by increasing connect timeout and retry budget
The routes_visible() polling function in TestSslThroughNlb creates a new TestCluster with SSL on every retry attempt. Under resource pressure (--smp 2 --memory 2048M shared across 3 nodes), the SSL handshake plus CQL negotiation can exceed the default 5-second connect_timeout, causing intermittent OperationTimedOut failures. Fix by passing connect_timeout=30 to TestCluster (matching the generous timeout recommended for slow-starting clusters) and increasing the wait_until_not_raised parameters from (0.5, 10) to (1, 30), consistent with other wait_until_not_raised calls in this file (lines 773, 855).
1 parent 92aa669 commit 56498e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/standard/test_client_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ def test_ssl_without_hostname_verification_through_nlb(self):
10591059
def routes_visible():
10601060
with TestCluster(
10611061
contact_points=["127.0.0.1"],
1062-
ssl_context=ssl_ctx,
1062+
ssl_context=ssl_ctx, connect_timeout=30,
10631063
) as c:
10641064
session = c.connect()
10651065
rs = session.execute(
@@ -1071,7 +1071,7 @@ def routes_visible():
10711071

10721072
wait_until_not_raised(
10731073
lambda: self.assertTrue(routes_visible()),
1074-
0.5, 10,
1074+
1, 30,
10751075
)
10761076

10771077
with Cluster(

0 commit comments

Comments
 (0)