Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1081#discussion_r105276124
  
    --- Diff: 
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SlowConsumerTest.java
 ---
    @@ -244,6 +245,49 @@ public void testSlowConsumerSpared() throws Exception {
        }
     
        @Test
    +   public void testSlowConsumerWithBurst() throws Exception {
    +      ClientSessionFactory sf = createSessionFactory(locator);
    +
    +      ClientSession session = addClientSession(sf.createSession(true, 
true));
    +
    +      ClientProducer producer = 
addClientProducer(session.createProducer(QUEUE));
    +
    +      final int numMessages = 20;
    +
    +      for (int i = 0; i < numMessages; i++) {
    +         producer.send(createTextMessage(session, "m" + i));
    +      }
    +
    +      assertPaging();
    +
    +      final Queue queue = server.locateQueue(QUEUE);
    +
    +      queue.getRate();
    +
    +      logger.info("Creating consumer...");
    +
    +      ClientConsumer consumer = 
addClientConsumer(session.createConsumer(QUEUE));
    +      session.start();
    +
    --- End diff --
    
    Little java8 trick:
    
          Wait.waitFor(() -> queue.getConsumerCount() == 0);
    
    
    not asking a chnage.. just a tip for future use


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to