Skip to content

Commit 019e96c

Browse files
committed
Disable ImapMailTests.testIdleWithMessageMapping
It is not clear why IMAP GreenMail server closes its socket accidentally
1 parent 4347383 commit 019e96c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import org.junit.jupiter.api.AfterEach;
6060
import org.junit.jupiter.api.BeforeAll;
6161
import org.junit.jupiter.api.BeforeEach;
62+
import org.junit.jupiter.api.Disabled;
6263
import org.junit.jupiter.api.Test;
6364
import org.mockito.Mockito;
6465

@@ -186,6 +187,7 @@ public void testIdleWithServerDefaultSearch() throws Exception {
186187
}
187188

188189
@Test
190+
@Disabled("GreenMail server closes socket for some reason")
189191
public void testIdleWithMessageMapping() throws Exception {
190192
ImapMailReceiver receiver =
191193
new ImapMailReceiver("imap://user:pw@localhost:" + imapIdleServer.getImap().getPort() + "/INBOX");
@@ -273,7 +275,7 @@ public void testIdleWithServerGuts(ImapMailReceiver receiver, boolean mapped, bo
273275
assertThat(received.getPayload()).isEqualTo("foo");
274276
}
275277
}
276-
user.deliver(GreenMailUtil.createTextEmail("to", "Bar <bar@baz>", "subject", "body\r\n",
278+
user.deliver(GreenMailUtil.createTextEmail("Foo <foo@bar>", "Bar <bar@baz>", "subject", "body\r\n",
277279
imapIdleServer.getImap().getServerSetup()));
278280
assertThat(channel.receive(30000)).isNotNull(); // new message after idle
279281
assertThat(channel.receive(100)).isNull(); // no new message after second and third idle

0 commit comments

Comments
 (0)