Skip to content

Commit 51fdd6e

Browse files
committed
RetryingTest for TcpOutboundGatewayTests.testGoodNetGWTimeoutCached
**Auto-cherry-pick to `7.0.x` & `6.5.x`**
1 parent a61b9b8 commit 51fdd6e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/outbound/TcpOutboundGatewayTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.apache.commons.logging.Log;
4646
import org.apache.commons.logging.LogFactory;
4747
import org.junit.jupiter.api.Test;
48+
import org.junitpioneer.jupiter.RetryingTest;
4849
import org.mockito.Mockito;
4950

5051
import org.springframework.core.serializer.DefaultDeserializer;
@@ -326,7 +327,7 @@ void testGoodNetGWTimeout() throws Exception {
326327
serverSocket.close();
327328
}
328329

329-
@Test
330+
@RetryingTest(10)
330331
void testGoodNetGWTimeoutCached() throws Exception {
331332
ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0);
332333
final int port = serverSocket.getLocalPort();

0 commit comments

Comments
 (0)