Skip to content

Commit 8f83be2

Browse files
committed
Move adjustments for ImapMailReceiverTests
1 parent 22acf51 commit 8f83be2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
@SpringJUnitConfig
105105
@ContextConfiguration(
106106
"classpath:org/springframework/integration/mail/config/ImapIdleChannelAdapterParserTests-context.xml")
107-
@DirtiesContext
107+
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
108108
public class ImapMailReceiverTests {
109109

110110
private AtomicInteger failed;
@@ -685,10 +685,10 @@ public void testNoInitialIdleDelayWhenRecentNotSupported() throws Exception {
685685
* Idle takes 5 seconds; if all is well, we should receive the first message
686686
* before then.
687687
*/
688-
assertThat(channel.receive(3000)).isNotNull();
688+
assertThat(channel.receive(10000)).isNotNull();
689689
// We should not receive any more until the next idle elapses
690690
assertThat(channel.receive(100)).isNull();
691-
assertThat(channel.receive(6000)).isNotNull();
691+
assertThat(channel.receive(10000)).isNotNull();
692692
adapter.stop();
693693
}
694694

0 commit comments

Comments
 (0)