You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/02/17 01:46:42 UTC

[james-project] 04/13: JAMES-3500 Group assertions for 1 minute+ tests

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 1ecbeeb1f2b88c0aeda57b6afc6d755da776b084
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Feb 14 16:28:59 2021 +0700

    JAMES-3500 Group assertions for 1 minute+ tests
---
 .../RabbitMQReindexingWithEventDeadLettersTest.java         | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java
index c3a4cf6..b99a6fa 100644
--- a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java
+++ b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java
@@ -142,7 +142,7 @@ class RabbitMQReindexingWithEventDeadLettersTest {
     }
 
     @Test
-    void redeliverShouldReIndexFailedMessages() throws Exception {
+    void redeliverShouldReIndexFailedMessagesAndCleanEventDeadLetter() throws Exception {
         aliceSavesADraft();
         CALMLY_AWAIT.until(() -> listElasticSearchFailedEvents().size() == 1);
 
@@ -150,17 +150,6 @@ class RabbitMQReindexingWithEventDeadLettersTest {
         redeliverAllFailedEvents();
 
         CALMLY_AWAIT.until(() -> listMessageIdsForAccount(aliceAccessToken).size() == 1);
-    }
-
-    @Test
-    void redeliverShouldCleanEventDeadLetter() throws Exception {
-        aliceSavesADraft();
-        CALMLY_AWAIT.until(() -> listElasticSearchFailedEvents().size() == 1);
-
-        unpauseElasticSearch();
-        redeliverAllFailedEvents();
-        CALMLY_AWAIT.until(() -> listMessageIdsForAccount(aliceAccessToken).size() == 1);
-
         assertThat(listElasticSearchFailedEvents()).isEmpty();
     }
 


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