NO-JIRA Fix random test failures if flow is omitted

If the remote detach arrives fast enough it can suppress the flow from
being sent by the broker so the test should mark that as an optional frame.
This commit is contained in:
Timothy Bish 2024-05-28 10:44:00 -04:00 committed by Robbie Gemmell
parent c47713454c
commit f4d9cfdca8
2 changed files with 2 additions and 2 deletions

View File

@ -3155,7 +3155,7 @@ public class AMQPFederationAddressPolicyTest extends AmqpClientTestSupport {
peer.remoteDetach().withClosed(true)
.withErrorCondition(AmqpError.NOT_FOUND.toString(), "Address not found")
.queue();
peer.expectFlow();
peer.expectFlow().optional();
peer.expectDetach();
server.createQueue(new QueueConfiguration("test").setRoutingType(RoutingType.MULTICAST)

View File

@ -3394,7 +3394,7 @@ public class AMQPFederationQueuePolicyTest extends AmqpClientTestSupport {
peer.remoteDetach().withClosed(true)
.withErrorCondition(AmqpError.NOT_FOUND.toString(), "Queue not found")
.queue();
peer.expectFlow();
peer.expectFlow().optional();
peer.expectDetach();
final ConnectionFactory factory = CFUtil.createConnectionFactory("AMQP", "tcp://localhost:" + AMQP_PORT);