Merge pull request #1585 from guobingkun/fix_transient_error

Fix transient error in BrokerServerViewTest
This commit is contained in:
Xavier Léauté 2015-07-31 12:53:32 -07:00
commit 5790367f6a
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,6 @@ public class BrokerServerViewTest extends CuratorTestBase
} }
}; };
baseView.start();
brokerServerView = new BrokerServerView( brokerServerView = new BrokerServerView(
EasyMock.createMock(QueryToolChestWarehouse.class), EasyMock.createMock(QueryToolChestWarehouse.class),
EasyMock.createMock(QueryWatcher.class), EasyMock.createMock(QueryWatcher.class),
@ -369,6 +367,8 @@ public class BrokerServerViewTest extends CuratorTestBase
new HighestPriorityTierSelectorStrategy(new RandomServerSelectorStrategy()), new HighestPriorityTierSelectorStrategy(new RandomServerSelectorStrategy()),
new NoopServiceEmitter() new NoopServiceEmitter()
); );
baseView.start();
} }
private void setupZNodeForServer(DruidServer server) throws Exception private void setupZNodeForServer(DruidServer server) throws Exception