mirror of https://github.com/apache/activemq.git
Swap expected and actual so that they match the intent of the assertion, otherwise the error message is misleading.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1478395 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d687324465
commit
b9cc24bdb6
|
@ -89,8 +89,8 @@ public class FailoverClusterTestSupport extends TestCase {
|
|||
}
|
||||
Set<String> keys = clientConnectionCounts.keySet();
|
||||
for(String key: keys){
|
||||
double count = (double)clientConnectionCounts.get(key);
|
||||
double percentage = count / (double)total;
|
||||
double count = clientConnectionCounts.get(key);
|
||||
double percentage = count / total;
|
||||
logger.info(count + " of " + total + " connections for " + key + " = " + percentage);
|
||||
assertTrue("Connections distribution expected to be >= than " + minimumPercentage
|
||||
+ ". Actuall distribution was " + percentage + " for connection " + key,
|
||||
|
@ -100,7 +100,7 @@ public class FailoverClusterTestSupport extends TestCase {
|
|||
|
||||
protected void assertAllConnectedTo(String url) throws Exception {
|
||||
for (ActiveMQConnection c : connections) {
|
||||
assertEquals(c.getTransportChannel().getRemoteAddress(), url);
|
||||
assertEquals(url, c.getTransportChannel().getRemoteAddress());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue