YARN-9658. Fix UT failures in TestLeafQueue. Contributed by Tao Yang.

This commit is contained in:
Weiwei Yang 2019-07-03 12:08:45 +08:00
parent 91cc197227
commit 15d82fcb75

View File

@ -177,6 +177,7 @@ private void setUpInternal(ResourceCalculator rC) throws Exception {
setupQueueConfiguration(csConf, newRoot);
YarnConfiguration conf = new YarnConfiguration();
cs.setConf(conf);
when(spyRMContext.getYarnConfiguration()).thenReturn(conf);
csContext = mock(CapacitySchedulerContext.class);
when(csContext.getConfiguration()).thenReturn(csConf);