ARTEMIS-5173 Trying to improve reliability on FederatedAddressTest

This commit is contained in:
Clebert Suconic 2024-12-11 12:39:42 -05:00
parent 2a067e08ee
commit 796ee0534a
1 changed files with 1 additions and 2 deletions

View File

@ -373,8 +373,7 @@ public class FederatedAddressTest extends FederatedTestBase {
.setRoutingType(ComponentConfigurationRoutingType.ANYCAST));
}
assertTrue(Wait.waitFor(() -> getServer(1).getPostOffice().getBindingsForAddress(SimpleString.of(address)).getBindings().size() == 1,
1000, 100));
Wait.assertEquals(1L, () -> getServer(1).getPostOffice().getBindingsForAddress(SimpleString.of(address)).getBindings().size(), 10_000, 100);
final QueueBinding remoteQueueBinding = (QueueBinding) getServer(1).getPostOffice().getBindingsForAddress(SimpleString.of(address))
.getBindings().iterator().next();
Wait.assertEquals(1, () -> remoteQueueBinding.getQueue().getConsumerCount());