HBASE-4153 fix TestOpenRegionHandler w.r.t. MockRegionServerServices
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1173826 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08d56e35e4
commit
9ab414f1dc
|
@ -132,7 +132,7 @@ public class TestOpenRegionHandler {
|
|||
@Test
|
||||
public void testFailedOpenRegion() throws Exception {
|
||||
Server server = new MockServer(HTU);
|
||||
RegionServerServices rsServices = Mockito.mock(RegionServerServices.class);
|
||||
RegionServerServices rsServices = new MockRegionServerServices();
|
||||
|
||||
// Create it OFFLINE, which is what it expects
|
||||
ZKAssign.createNodeOffline(server.getZooKeeper(), TEST_HRI, server.getServerName());
|
||||
|
@ -157,7 +157,7 @@ public class TestOpenRegionHandler {
|
|||
@Test
|
||||
public void testFailedUpdateMeta() throws Exception {
|
||||
Server server = new MockServer(HTU);
|
||||
RegionServerServices rsServices = Mockito.mock(RegionServerServices.class);
|
||||
RegionServerServices rsServices = new MockRegionServerServices();
|
||||
|
||||
// Create it OFFLINE, which is what it expects
|
||||
ZKAssign.createNodeOffline(server.getZooKeeper(), TEST_HRI, server.getServerName());
|
||||
|
|
Loading…
Reference in New Issue