clebertsuconic commented on code in PR #4656:
URL: https://github.com/apache/activemq-artemis/pull/4656#discussion_r1388073741


##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/connect/AMQPFederationConnectTest.java:
##########
@@ -219,6 +219,7 @@ public void 
testFederationCreatesControlLinkAndClosesConnectionDetachIndicatesNo
                                        .withNullTarget();
          peer.remoteDetach().withErrorCondition("amqp:unauthorized-access", 
"Not authroized").queue();
          peer.expectDetach().optional();
+         peer.expectClose().optional();

Review Comment:
   Moving to the Connection Failure to the Netty thread unveiled an issue with 
Broker Connection. By the time I issue a failure, we won't wait the flush of 
the connection.close to be sent to the client before we close it... we just 
disconnect(). If you are writing a unit test like this.. the expect close 
becomes optional. Fixing it would require some work, and it would be orthogonal 
to this.
   
   As for now, this is what I"m supposed to do with these tests.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to