You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ro...@apache.org on 2020/06/08 13:15:57 UTC

[james-project] 03/30: JAMES-3179 Fix QuotaThresholdNoticeTest constant overflow

This is an automated email from the ASF dual-hosted git repository.

rouazana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 574677337fe3ec66c6772d0972b2dec0eb03bdf8
Author: Gautier DI FOLCO <gd...@linagora.com>
AuthorDate: Tue May 12 14:07:36 2020 +0200

    JAMES-3179 Fix QuotaThresholdNoticeTest constant overflow
---
 .../mailbox/quota/mailing/subscribers/QuotaThresholdNoticeTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mailbox/plugin/quota-mailing/src/test/java/org/apache/james/mailbox/quota/mailing/subscribers/QuotaThresholdNoticeTest.java b/mailbox/plugin/quota-mailing/src/test/java/org/apache/james/mailbox/quota/mailing/subscribers/QuotaThresholdNoticeTest.java
index 325b111..3a55cdf 100644
--- a/mailbox/plugin/quota-mailing/src/test/java/org/apache/james/mailbox/quota/mailing/subscribers/QuotaThresholdNoticeTest.java
+++ b/mailbox/plugin/quota-mailing/src/test/java/org/apache/james/mailbox/quota/mailing/subscribers/QuotaThresholdNoticeTest.java
@@ -232,7 +232,7 @@ class QuotaThresholdNoticeTest {
             .withConfiguration(DEFAULT_CONFIGURATION)
             .sizeQuota(Quota.<QuotaSizeLimit, QuotaSizeUsage>builder()
                 .used(QuotaSizeUsage.size(801 * 1024 * 1024))
-                .computedLimit(QuotaSizeLimit.size((2 * 1024 * 1024 * 1024) - 1))
+                .computedLimit(QuotaSizeLimit.size((2L * 1024 * 1024 * 1024) - 1))
                 .build())
             .countQuota(Counts._72_PERCENT)
             .sizeThreshold(HistoryEvolution.higherThresholdReached(sizeThresholdChange, NotAlreadyReachedDuringGracePeriod))


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org