Skip to content

Commit 1690be4

Browse files
committed
Decrease read timeout for GreenMail tests
This may give a chance for IDLE to restart more often to read the actual INBOX state during the test
1 parent 4583afe commit 1690be4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ void startImapServer() {
150150
imapSearches.stores.clear();
151151
ServerSetup imap = ServerSetupTest.IMAP.verbose(true).dynamicPort();
152152
imap.setServerStartupTimeout(10000);
153+
imap.setReadTimeout(2000);
153154
imapIdleServer = new GreenMail(imap);
154155
user = imapIdleServer.setUser("user", "pw");
155156
imapIdleServer.start();

0 commit comments

Comments
 (0)