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

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

commit 2b27965c537f22daadabad698d68e5a2070e5844
Author: Benoit Tellier <btell...@linagora.com>
AuthorDate: Wed Aug 28 10:38:38 2019 +0700

    JAMES-2865 Fix locale dependant test in MockSMTPServer test
    
    The exception message is internationalized and appears in French on my
    computer, causing the test to fail. Solution: only match the non
    internationalized part of the exception.
---
 .../test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
 
b/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
index a5ceef5..f41b413 100644
--- 
a/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
+++ 
b/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
@@ -441,7 +441,7 @@ class MockSMTPServerTest {
         assertThatThrownBy(() -> new SMTPMessageSender(DOMAIN)
                 .connect("localhost", port))
             .isInstanceOf(ConnectException.class)
-            .hasMessage("Connection refused (Connection refused)");
+            .hasMessageContaining("(Connection refused)");
     }
 
     @Test


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

Reply via email to