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!



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

To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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


Reply via email to