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
This commit is contained in:
abilan
2023-06-28 12:53:25 -04:00
parent 4583afe0ad
commit 1690be45fc

View File

@@ -150,6 +150,7 @@ public class ImapMailReceiverTests {
imapSearches.stores.clear();
ServerSetup imap = ServerSetupTest.IMAP.verbose(true).dynamicPort();
imap.setServerStartupTimeout(10000);
imap.setReadTimeout(2000);
imapIdleServer = new GreenMail(imap);
user = imapIdleServer.setUser("user", "pw");
imapIdleServer.start();