Author: mircea.markus
Date: 2009-02-03 08:49:19 -0500 (Tue, 03 Feb 2009)
New Revision: 7631
Modified:
core/trunk/src/test/java/org/jboss/cache/util/SingleBuddyGravitationHelper.java
Log:
fixed replication expectation
Modified: core/trunk/src/test/java/org/jboss/cache/util/SingleBuddyGravitationHelper.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/util/SingleBuddyGravitationHelper.java 2009-02-03
13:44:19 UTC (rev 7630)
+++
core/trunk/src/test/java/org/jboss/cache/util/SingleBuddyGravitationHelper.java 2009-02-03
13:49:19 UTC (rev 7631)
@@ -194,7 +194,7 @@
private boolean newOwnerIsBuddyOfOldOwner()
{
- return (toIndex - 1 == fromIndex) || (toIndex == caches.length - 1 &&
fromIndex == 0);
+ return (toIndex - 1 == fromIndex) || (toIndex == 0 && fromIndex ==
caches.length - 1);
}
private void waitForReplication()