You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2022/07/04 04:07:55 UTC
[GitHub] [james-project] Arsnael commented on a diff in pull request #1075: Fix testing queue/queue-rabbitmq - RabbitMQMailQueueTest.deQueueMails - RabbitFluxException
Arsnael commented on code in PR #1075:
URL: https://github.com/apache/james-project/pull/1075#discussion_r912611475
##########
server/queue/queue-rabbitmq/src/test/java/org/apache/james/queue/rabbitmq/RabbitMQMailQueueTest.java:
##########
@@ -655,7 +655,7 @@ private void dequeueMails(int times) {
.flatMap(mailQueueItem -> Mono.fromCallable(() -> {
mailQueueItem.done(true);
return mailQueueItem;
- }).subscribeOn(Schedulers.elastic()))
+ }).subscribeOn(Schedulers.newBoundedElastic(2, 20, "DeQueueSchedulerTest")))
Review Comment:
Ah good spot, that got forgotten during the migration elastic -> bounderElastic.
I think though that we have a wrapper for that though? `ReactorUtils.BLOCKING_CALL_WRAPPER`?
--
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: notifications-unsubscribe@james.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org