Skip to content

Commit

Permalink
Move adjustments for ImapMailReceiverTests
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Mar 29, 2023
1 parent 22acf51 commit 8f83be2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
@SpringJUnitConfig
@ContextConfiguration(
"classpath:org/springframework/integration/mail/config/ImapIdleChannelAdapterParserTests-context.xml")
@DirtiesContext
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
public class ImapMailReceiverTests {

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

Expand Down

0 comments on commit 8f83be2

Please sign in to comment.