HBASE-6584 TestAssignmentManager#testDisablingTableRegionsAssignmentDuringCleanClusterStartup fails due to port 60000 already in use (Rajesh)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1376918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-08-24 14:03:35 +00:00
parent aedfe03b91
commit 2c59e2bba4
1 changed files with 1 additions and 0 deletions

View File

@ -823,6 +823,7 @@ public class TestAssignmentManager {
destServers.add(SERVERNAME_A); destServers.add(SERVERNAME_A);
Mockito.when(this.serverManager.createDestinationServersList()).thenReturn(destServers); Mockito.when(this.serverManager.createDestinationServersList()).thenReturn(destServers);
// To avoid cast exception in DisableTableHandler process. // To avoid cast exception in DisableTableHandler process.
HTU.getConfiguration().setInt(HConstants.MASTER_PORT, 0);
Server server = new HMaster(HTU.getConfiguration()); Server server = new HMaster(HTU.getConfiguration());
AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager(server, AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager(server,
this.serverManager); this.serverManager);