[ 
https://issues.apache.org/jira/browse/ARTEMIS-5166?focusedWorklogId=944694&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-944694
 ]

ASF GitHub Bot logged work on ARTEMIS-5166:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Nov/24 20:34
            Start Date: 20/Nov/24 20:34
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #5357:
URL: https://github.com/apache/activemq-artemis/pull/5357#discussion_r1850947746


##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/ReconnectTest.java:
##########
@@ -195,19 +189,13 @@ public void internalMetadataAfterRetry(final boolean 
isNetty) throws Exception {
 
    }
 
-   private ServerSession[] countMetadata(ActiveMQServer server, String 
parameter, int expected) throws Exception {
+   private ServerSession[] getSessionsWithMetadata(ActiveMQServer server, 
String parameter) throws Exception {
       List<ServerSession> sessionList = new LinkedList<>();
 
-      for (int i = 0; i < 10 && sessionList.size() != expected; i++) {
-         sessionList.clear();
-         for (ServerSession sess : server.getSessions()) {
-            if (sess.getMetaData(parameter) != null) {
-               sessionList.add(sess);
-            }
-         }
-
-         if (sessionList.size() != expected) {
-            Thread.sleep(100);
+      sessionList.clear();

Review Comment:
   thanks!





Issue Time Tracking
-------------------

    Worklog Id:     (was: 944694)
    Time Spent: 0.5h  (was: 20m)

> Improve reliability of ReconnectTest
> ------------------------------------
>
>                 Key: ARTEMIS-5166
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5166
>             Project: ActiveMQ Artemis
>          Issue Type: Test
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.39.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to