activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnament <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #672: [ARTEMIS-642] Disable slow client reconn...
Date Wed, 27 Jul 2016 11:06:23 GMT
Github user johnament commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/672#discussion_r72420571
  
    --- Diff: tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SlowConsumerTest.java
---
    @@ -115,6 +119,40 @@ public void testSlowConsumerKilled() throws Exception {
        }
     
        @Test
    +   public void testDisableSlowConsumerReconnectWithKilled() throws Exception {
    +      ClientSessionFactory sf = createSessionFactory(locator);
    +
    +      ClientSession session = addClientSession(sf.createSession(false, true, true, false));
    +
    +      session.createQueue(QUEUE, QUEUE, null, false);
    +
    +      ClientProducer producer = addClientProducer(session.createProducer(QUEUE));
    +
    +      final int numMessages = 25;
    +
    +      for (int i = 0; i < numMessages; i++) {
    +         producer.send(createTextMessage(session, "m" + i));
    +      }
    +
    +      ClientConsumer consumer = addClientConsumer(session.createConsumer(QUEUE));
    +      session.start();
    +
    +      Thread.sleep(3000);
    +
    +      RemotingService service = server.getRemotingService();
    +      Set<RemotingConnection> connections = service.getConnections();
    +      assertEquals(true, connections.isEmpty());
    --- End diff --
    
    maybe `assertTrue` instead?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message