Skip to content

Commit edaa55a

Browse files
artembilanspring-builds
authored andcommitted
RetryingTest for TcpOutboundGatewayTests.testGoodNetGWTimeoutCached
(cherry picked from commit 51fdd6e)
1 parent 821c771 commit edaa55a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/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.beans.factory.BeanFactory;
@@ -319,7 +320,7 @@ void testGoodNetGWTimeout() throws Exception {
319320
serverSocket.close();
320321
}
321322

322-
@Test
323+
@RetryingTest(10)
323324
void testGoodNetGWTimeoutCached() throws Exception {
324325
ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0);
325326
final int port = serverSocket.getLocalPort();

0 commit comments

Comments
 (0)