quantranhong1999 commented on code in PR #1411:
URL: https://github.com/apache/james-project/pull/1411#discussion_r1090167007
##########
server/protocols/webadmin/webadmin-mailrepository/src/test/java/org/apache/james/webadmin/service/ReprocessingServiceTest.java:
##########
@@ -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()));
Review Comment:
Have a constant for `Optional.empty()` say `UNLIMITED_MAX_RETRIES` would
make the tests more readable IMO.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]