From 464e32fff4f1f98c5148256822f87d7a8441af9e Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Tue, 10 Nov 2026 16:52:34 -0600 Subject: [PATCH] test(elbv2): avoid a scheduler-dependent timeout assertion (#7944) Keep the stopped-listener timeout assertion without requiring multiple polls within 350 ms. Dedicated refusal and handshake tests still assert the retry behavior. Signed-off-by: Andre Kurait --- .../io/floci/aws/services/elbv2/ElbV2TlsReadinessTest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/test/java/io/floci/aws/services/elbv2/ElbV2TlsReadinessTest.java b/src/test/java/io/floci/aws/services/elbv2/ElbV2TlsReadinessTest.java index 89baf0e42f..a2b315ead5 100644 --- a/src/test/java/io/floci/aws/services/elbv2/ElbV2TlsReadinessTest.java +++ b/src/test/java/io/floci/aws/services/elbv2/ElbV2TlsReadinessTest.java @@ -44,16 +44,13 @@ class ElbV2TlsReadinessTest { @Test void permanentlyStoppedListenerStillTimesOut() throws Exception { int port = unusedLoopbackPort(); - AtomicInteger attempts = new AtomicInteger(); assertThrows(ConditionTimeoutException.class, () -> ElbV2TlsReadiness.await( Duration.ofMillis(350), () -> { - attempts.incrementAndGet(); try (Socket socket = new Socket()) { socket.connect(new InetSocketAddress(InetAddress.getLoopbackAddress(), port), 500); fail("Stopped listener unexpectedly accepted a connection"); } })); - assertTrue(attempts.get() > 1); } @Test