Deflake MailIT.delete

By setting the fetchInterval to Integer.MAX_VALUE this test should be
deflaked. Previousy, it was set to 99ms which led to the automatic
fetcher stealing messages that we assert on later in the code.

Change-Id: Id8412c9469c29f695510c277827dd083fdd9c494
This commit is contained in:
Patrick Hiesel
2017-04-05 17:02:30 +02:00
parent 01fdfba882
commit 5ade38a257

View File

@@ -55,7 +55,7 @@ public class MailIT extends AbstractDaemonTest {
cfg.setString(RECEIVEEMAIL, null, "username", USERNAME);
cfg.setString(RECEIVEEMAIL, null, "password", PASSWORD);
cfg.setString(RECEIVEEMAIL, null, "protocol", "POP3");
cfg.setString(RECEIVEEMAIL, null, "fetchInterval", "99");
cfg.setString(RECEIVEEMAIL, null, "fetchInterval", Integer.toString(Integer.MAX_VALUE));
return cfg;
}
@@ -67,7 +67,7 @@ public class MailIT extends AbstractDaemonTest {
cfg.setString(RECEIVEEMAIL, null, "username", USERNAME);
cfg.setString(RECEIVEEMAIL, null, "password", PASSWORD);
cfg.setString(RECEIVEEMAIL, null, "protocol", "IMAP");
cfg.setString(RECEIVEEMAIL, null, "fetchInterval", "99");
cfg.setString(RECEIVEEMAIL, null, "fetchInterval", Integer.toString(Integer.MAX_VALUE));
return cfg;
}