Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAMES-3880 MailRepositories: add a way to count retries #1411

Merged
merged 2 commits into from Jan 31, 2023

Conversation

chibenwa
Copy link
Contributor

No description provided.

@@ -109,7 +112,7 @@ void reprocessingOneShouldEnqueueMail() throws Exception {
repository.store(mail2);
repository.store(mail3);

reprocessingService.reprocess(PATH, KEY_2, new ReprocessingService.Configuration(SPOOL, NO_TARGET_PROCESSOR, CONSUME, Limit.unlimited()));
reprocessingService.reprocess(PATH, KEY_2, new ReprocessingService.Configuration(SPOOL, NO_TARGET_PROCESSOR, Optional.empty(), CONSUME, Limit.unlimited()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a constant for Optional.empty() say UNLIMITED_MAX_RETRIES would make the tests more readable IMO.

@chibenwa chibenwa merged commit f9b34ea into apache:master Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants