Skip to content

Commit 6d40c8d

Browse files
author
Wellington Chevreuil
committed
Fixing UT failures
Change-Id: I89326af60c4e19f6dff0a0c517b826b17947b264
1 parent 8b856b9 commit 6d40c8d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestDefaultStoreEngine.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public void testCustomParts() throws Exception {
6767
DummyStoreFlusher.class.getName());
6868
HRegion mockRegion = Mockito.mock(HRegion.class);
6969
HStore mockStore = Mockito.mock(HStore.class);
70+
mockStore.conf = conf;
7071
Mockito.when(mockStore.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);
7172
Mockito.when(mockStore.getHRegion()).thenReturn(mockRegion);
7273
StoreEngine<?, ?, ?, ?> se =

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStripeStoreEngine.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ private static HStoreFile createFile() throws Exception {
120120
private static TestStoreEngine createEngine(Configuration conf) throws Exception {
121121
HRegion region = mock(HRegion.class);
122122
HStore store = mock(HStore.class);
123+
store.conf = conf;
123124
when(store.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);
124125
when(store.getHRegion()).thenReturn(region);
125126
CellComparatorImpl kvComparator = mock(CellComparatorImpl.class);

0 commit comments

Comments
 (0)