james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [17/17] james-project git commit: Reduce size of "Download" cucumber test messages
Date Tue, 12 Jun 2018 00:03:36 GMT
Reduce size of "Download" cucumber test messages

They put a significant pressure on Garbadge collection and lead to test crash


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

Branch: refs/heads/master
Commit: bb176e07b7006a6ca9d3ca9ab3b61e07ad589efb
Parents: f3127d8
Author: benwa <btellier@linagora.com>
Authored: Fri Jun 8 14:57:03 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Tue Jun 12 07:02:02 2018 +0700

----------------------------------------------------------------------
 .../james/jmap/methods/integration/cucumber/DownloadStepdefs.java  | 2 +-
 .../src/test/resources/cucumber/DownloadGet.feature                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/bb176e07/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
index a2aedfc..6f611a4 100644
--- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
+++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
@@ -110,7 +110,7 @@ public class DownloadStepdefs {
 
         ComposedMessageId composedMessageId = mainStepdefs.mailboxProbe.appendMessage(user,
mailboxPath,
             AppendCommand.from(new ByteArrayInputStream(
-                Strings.repeat("header: 0123456789\r\n", 1024 * 1024)
+                Strings.repeat("header: 0123456789\r\n", 128 * 1024)
                     .getBytes(StandardCharsets.UTF_8))));
 
         inputToMessageId.put(messageId, composedMessageId.getMessageId());

http://git-wip-us.apache.org/repos/asf/james-project/blob/bb176e07/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
----------------------------------------------------------------------
diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
index 6a11038..565e1be 100644
--- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
+++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
@@ -58,7 +58,7 @@ Feature: Download GET
   Scenario: Getting a message blob previously stored
     Given "alice@domain.tld" mailbox "INBOX" contains a big message "1"
     When "alice@domain.tld" downloads "1"
-    Then the blob size is 20971520
+    Then the blob size is 2621440
 
   Scenario: Getting a message then getting its blob
     Given "alice@domain.tld" has a message "m1" in "INBOX" mailbox with subject "my test
subject", content "testmail"


---------------------------------------------------------------------
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