Skip to content

Commit b76e511

Browse files
committed
Mark a couple flaky tests as @RetryingTest(10)
1 parent caa4c07 commit b76e511

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spring-integration-kafka/src/test/java/org/springframework/integration/kafka/dsl/KafkaDslTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.apache.kafka.clients.producer.ProducerConfig;
3232
import org.apache.kafka.common.TopicPartition;
3333
import org.junit.jupiter.api.Test;
34+
import org.junitpioneer.jupiter.RetryingTest;
3435

3536
import org.springframework.beans.factory.annotation.Autowired;
3637
import org.springframework.beans.factory.annotation.Qualifier;
@@ -171,7 +172,7 @@ public class KafkaDslTests {
171172
@Autowired
172173
private QueueChannel recoveringErrorChannel;
173174

174-
@Test
175+
@RetryingTest(10)
175176
void testKafkaAdapters() throws Exception {
176177
this.sendToKafkaFlowInput.send(new GenericMessage<>("foo", Collections.singletonMap("foo", "bar")));
177178

spring-integration-mail/src/test/java/org/springframework/integration/mail/inbound/ImapMailReceiverTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import org.junit.jupiter.api.BeforeEach;
6464
import org.junit.jupiter.api.Disabled;
6565
import org.junit.jupiter.api.Test;
66+
import org.junitpioneer.jupiter.RetryingTest;
6667
import org.mockito.Mockito;
6768

6869
import org.springframework.beans.DirectFieldAccessor;
@@ -165,7 +166,7 @@ void stopImapServer() {
165166
imapIdleServer.stop();
166167
}
167168

168-
@Test
169+
@RetryingTest(10)
169170
public void testIdleWithServerCustomSearch() throws Exception {
170171
ImapMailReceiver receiver =
171172
new ImapMailReceiver("imap://user:pw@localhost:" + imapIdleServer.getImap().getPort() + "/INBOX");

0 commit comments

Comments
 (0)