Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20236

ExternalJMSDestinationDefinitionMessagingDeploymentTestCase can 'ignore' existing queues

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • 36.0.0.Beta1
    • None
    • JMS
    • None

      https://ci.wildfly.org/viewLog.html?buildId=479812&tab=buildResultsDiv&buildTypeId=WF_PullRequest_GalleonLinuxJdk17

      java.lang.AssertionError: expected:<4> but was:<3>
      	at org.junit.Assert.fail(Assert.java:89)
      	at org.junit.Assert.failNotEquals(Assert.java:835)
      	at org.junit.Assert.assertEquals(Assert.java:647)
      	at org.junit.Assert.assertEquals(Assert.java:633)
      	at org.jboss.as.test.integration.messaging.jms.external.prefix.ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.checkRuntimeQueue(ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.java:269)
      	at org.jboss.as.test.integration.messaging.jms.external.prefix.ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.testSendMessage(ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.java:249)
      

      Fails at:

                  Set<String> queues = runtimeQueues.stream().map(ModelNode::asString).collect(Collectors.toSet());
                  Assert.assertEquals(initialQueues.size() + 2, queues.size());
      

      I don't know why that failed but one possibility is some queue from 'initialQueues' is no longer present.

      The test doesn't need to assert the initial size of the set; it just needs to check its contents.

      (Note: the test already confirmed that messages were received via the 2 added queues, so they probably exist. If they don't later checks will fail.)

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: