HBASE-10954 Fix TestCloseRegionHandler.testFailedFlushAborts (Mikhail Antonov)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1586213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2014-04-10 04:44:57 +00:00
parent 8bcb70ddcf
commit 58c20f3c76
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class TestCloseRegionHandler {
HRegion spy = Mockito.spy(region);
final boolean abort = false;
Mockito.when(spy.close(abort)).
thenThrow(new RuntimeException("Mocked failed close!"));
thenThrow(new IOException("Mocked failed close!"));
// The CloseRegionHandler will try to get an HRegion that corresponds
// to the passed hri -- so insert the region into the online region Set.
rss.addToOnlineRegions(spy);