james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [1/8] james-project git commit: JAMES-2470 Modest performance improvment by making unreachable MX static
Date Fri, 03 Aug 2018 00:58:16 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 5935abbb7 -> c3715e708


JAMES-2470 Modest performance improvment by making unreachable MX static

It allows to gain ~12 s


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a139cc26
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a139cc26
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a139cc26

Branch: refs/heads/master
Commit: a139cc2619d8f96b12d91d3f716c5d410c88ffce
Parents: 5935abb
Author: benwa <btellier@linagora.com>
Authored: Thu Aug 2 14:20:32 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Thu Aug 2 14:20:32 2018 +0700

----------------------------------------------------------------------
 .../mailets/DirectResolutionRemoteDeliveryIntegrationTest.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/a139cc26/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/DirectResolutionRemoteDeliveryIntegrationTest.java
----------------------------------------------------------------------
diff --git a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/DirectResolutionRemoteDeliveryIntegrationTest.java
b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/DirectResolutionRemoteDeliveryIntegrationTest.java
index f48587f..69c088c 100644
--- a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/DirectResolutionRemoteDeliveryIntegrationTest.java
+++ b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/DirectResolutionRemoteDeliveryIntegrationTest.java
@@ -49,6 +49,7 @@ import org.apache.james.utils.SMTPMessageSender;
 import org.awaitility.Duration;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.ClassRule;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
@@ -75,8 +76,8 @@ public class DirectResolutionRemoteDeliveryIntegrationTest {
     public SMTPMessageSender messageSender = new SMTPMessageSender(DEFAULT_DOMAIN);
     @Rule
     public FakeSmtp fakeSmtp = new FakeSmtp();
-    @Rule
-    public FakeSmtp fakeSmtpOnPort26 = FakeSmtp.withSmtpPort(26);
+    @ClassRule
+    public static FakeSmtp fakeSmtpOnPort26 = FakeSmtp.withSmtpPort(26);
 
     private TemporaryJamesServer jamesServer;
     private DataProbe dataProbe;


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


Mime
View raw message