Skip to content

Commit e98c2ea

Browse files
committed
HBASE-23185 Fix test failure by HBASE-23185 changes
1 parent ce65db3 commit e98c2ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/client/HConnectionTestingUtility.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,11 @@ public static ClusterConnection getMockedConnectionAndDecorate(final Configurati
162162
}
163163
NonceGenerator ng = Mockito.mock(NonceGenerator.class);
164164
Mockito.when(c.getNonceGenerator()).thenReturn(ng);
165-
Mockito.when(c.getAsyncProcess()).thenReturn(
166-
new AsyncProcess(c, conf, null, RpcRetryingCallerFactory.instantiate(conf), false,
167-
RpcControllerFactory.instantiate(conf), conf.getInt(HConstants.HBASE_RPC_TIMEOUT_KEY,
168-
HConstants.DEFAULT_HBASE_RPC_TIMEOUT)));
165+
AsyncProcess asyncProcess =
166+
new AsyncProcess(c, conf, null, RpcRetryingCallerFactory.instantiate(conf), false,
167+
RpcControllerFactory.instantiate(conf), conf.getInt(HConstants.HBASE_RPC_TIMEOUT_KEY,
168+
HConstants.DEFAULT_HBASE_RPC_TIMEOUT));
169+
Mockito.when(c.getAsyncProcess()).thenReturn(asyncProcess);
169170
Mockito.doNothing().when(c).incCount();
170171
Mockito.doNothing().when(c).decCount();
171172
Mockito.when(c.getNewRpcRetryingCallerFactory(conf)).thenReturn(

0 commit comments

Comments
 (0)