NO-JIRA Improve test

This commit is contained in:
Clebert Suconic 2019-02-19 19:31:49 -05:00
parent a68381904f
commit 43c0868d72
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class ClusteredBridgeReconnectTest extends ClusterTestBase {
MessageFlowRecord record = connection.getRecords().values().toArray(new MessageFlowRecord[1])[0];
ClusterConnectionBridge bridge = (ClusterConnectionBridge) record.getBridge();
Wait.assertEquals(2, bridge.getSessionFactory().getServerLocator().getTopology().getMembers()::size);
Wait.assertEquals(2, () -> bridge.getSessionFactory().getServerLocator().getTopology().getMembers().size());
ArrayList<TopologyMemberImpl> originalmembers = new ArrayList<>(bridge.getSessionFactory().getServerLocator().getTopology().getMembers());
for (int i = 0; i < NUMBER_OF_MESSAGES; i++) {
@ -99,7 +99,7 @@ public class ClusteredBridgeReconnectTest extends ClusterTestBase {
}
}
Wait.assertEquals(2, bridge.getSessionFactory().getServerLocator().getTopology().getMembers()::size);
Wait.assertEquals(2, () -> bridge.getSessionFactory().getServerLocator().getTopology().getMembers().size());
ArrayList<TopologyMemberImpl> afterReconnectedMembers = new ArrayList<>(bridge.getSessionFactory().getServerLocator().getTopology().getMembers());