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

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

commit 6fcfc3a25f20e5b4cc6a145d592dacef0a86a25a
Author: Benoit Tellier <[email protected]>
AuthorDate: Wed Jul 7 16:30:06 2021 +0700

    JAMES-3610 Fix 
SmtpSizeLimitationTest::messageShouldNotBeAcceptedWhenOverSized
    
    Maximum line length is exceeded, not the right exception is tested
---
 .../src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
 
b/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
index 9b73aaf..1e2d712 100644
--- 
a/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
+++ 
b/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
@@ -76,8 +76,8 @@ class SmtpSizeLimitationTest {
         assertThatThrownBy(() ->
             messageSender.connect(LOCALHOST_IP, 
jamesServer.getProbe(SmtpGuiceProbe.class).getSmtpPort())
                 .authenticate(USER, PASSWORD)
-                .sendMessageWithHeaders(USER, USER, Strings.repeat("Long 
message", 1024)))
-            .isEqualTo(new SMTPSendingException(SmtpSendingStep.Data, "500 
Line length exceeded. See RFC 2821 #4.5.3.1.\n"));
+                .sendMessageWithHeaders(USER, USER, Strings.repeat("Long 
message\r\n", 1024)))
+            .isEqualTo(new SMTPSendingException(SmtpSendingStep.Data, "552 
Quota exceeded\n"));
     }
 
     @Test

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to