You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/03/24 02:24:31 UTC
[GitHub] [james-project] Arsnael commented on a change in pull request #339: JAMES-3521 Fix unstable integration tests in distributed server
Arsnael commented on a change in pull request #339:
URL: https://github.com/apache/james-project/pull/339#discussion_r600109042
##########
File path: server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedMailboxSetMethodTest.java
##########
@@ -64,4 +67,14 @@ public MailboxId randomMailboxId() {
public String errorInvalidMailboxIdMessage(String value) {
return String.format("%s is not a mailboxId: Invalid UUID string: %s", value, value);
}
+
+ @Override
+ @Test
+ @Disabled("Distributed event bus is asynchronous, we cannot expect the newState to be returned immediately after Mailbox/set call")
+ public void newStateShouldBeUpToDate(GuiceJamesServer server) {}
+
+ @Override
+ @Test
+ @Disabled("Distributed event bus is asynchronous, we cannot expect the newState to be returned immediately after Mailbox/set call")
+ public void oldStateShouldIncludeSetChanges(GuiceJamesServer server) {}
Review comment:
Could not maybe rewrite it, by separating /set and /changes call? You get the old state from the /set response and put an await on your changes call?
##########
File path: server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedMailboxSetMethodTest.java
##########
@@ -64,4 +67,14 @@ public MailboxId randomMailboxId() {
public String errorInvalidMailboxIdMessage(String value) {
return String.format("%s is not a mailboxId: Invalid UUID string: %s", value, value);
}
+
+ @Override
+ @Test
+ @Disabled("Distributed event bus is asynchronous, we cannot expect the newState to be returned immediately after Mailbox/set call")
+ public void newStateShouldBeUpToDate(GuiceJamesServer server) {}
Review comment:
Could not maybe rewrite it, by separating /set and /changes call? You get the new state from the /set response and put an await on your changes call?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org