mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALF-13264: "Cluster Verification Support"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34605 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -62,7 +62,7 @@ public class AlfrescoJGroupsChannelFactoryTest extends TestCase
|
||||
|
||||
public void testNoCluster() throws Exception
|
||||
{
|
||||
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
|
||||
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
|
||||
stressChannel(channel);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ public class AlfrescoJGroupsChannelFactoryTest extends TestCase
|
||||
{
|
||||
AlfrescoJGroupsChannelFactory.changeClusterNamePrefix("blah");
|
||||
AlfrescoJGroupsChannelFactory.rebuildChannels();
|
||||
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
|
||||
Channel channel = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
|
||||
stressChannel(channel);
|
||||
}
|
||||
|
||||
@@ -78,11 +78,11 @@ public class AlfrescoJGroupsChannelFactoryTest extends TestCase
|
||||
{
|
||||
AlfrescoJGroupsChannelFactory.changeClusterNamePrefix("ONE");
|
||||
AlfrescoJGroupsChannelFactory.rebuildChannels();
|
||||
Channel channel1 = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
|
||||
Channel channel1 = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
|
||||
stressChannel(channel1);
|
||||
AlfrescoJGroupsChannelFactory.changeClusterNamePrefix("TWO");
|
||||
AlfrescoJGroupsChannelFactory.rebuildChannels();
|
||||
Channel channel2 = AlfrescoJGroupsChannelFactory.getChannel(appRegion);
|
||||
Channel channel2 = AlfrescoJGroupsChannelFactory.getChannel(appRegion, false);
|
||||
stressChannel(channel1);
|
||||
assertTrue("Channel reference must be the same", channel1 == channel2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user