You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2024/05/30 13:58:43 UTC

(activemq-artemis) branch main updated: NO-JIRA Fixing intermittent test failure on PagingTest

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

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 4c6cded2e7 NO-JIRA Fixing intermittent test failure on PagingTest
4c6cded2e7 is described below

commit 4c6cded2e79cf10d2323de1b5fa7418b289ab034
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Thu May 30 09:58:01 2024 -0400

    NO-JIRA Fixing intermittent test failure on PagingTest
---
 .../java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java b/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java
index fa960f06e6..cc36c07e45 100644
--- a/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java
+++ b/tests/db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging/PagingTest.java
@@ -788,7 +788,7 @@ public class PagingTest extends ParameterDBTestBase {
          consumer.close();
          Wait.assertFalse(queue.getPagingStore()::isPaging, 5000, 100);
 
-         Wait.assertEquals(1, () -> PagingStoreTestAccessor.getUsedPagesSize(queue.getPagingStore()), 1000, 100);
+         Wait.assertTrue(() -> PagingStoreTestAccessor.getUsedPagesSize(queue.getPagingStore()) <= 1, 1000, 100);
 
       }
       Wait.assertFalse(queue.getPagingStore()::isPaging, 5000, 100);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact