chibenwa commented on code in PR #3194:
URL: https://github.com/apache/james-project/pull/3194#discussion_r4073305553
##########
server/queue/queue-jms/src/test/java/org/apache/james/queue/jms/JMSCacheableMailQueueTest.java:
##########
@@ -135,4 +135,24 @@ public void delayedEmailsShouldBeDeleted() {
public void delayedEmailsShouldBeDeletedWhenMixedWithOtherEmails() {
}
+
+ @Test
+ void delayedMessagesDoNotBlockReadyDelivery_JAMES4192() throws Exception {
+ // Enqueue 250 delayed messages (exceeding standard prefetch/page
buffer of 200)
+ for (int i = 0; i < 250; i++) {
Review Comment:
Testing time suggestion `standard prefetch/page buffer of 200` -> remove
static + private and annotate this with @VisibleForTesting and set a lower
value like 10, so testing with 15 is OK...
Alternative: read page size from system props set in the surefire worker...
--
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]