YARN-9658. Fix UT failures in TestLeafQueue. Contributed by Tao Yang.
This commit is contained in:
parent
91cc197227
commit
15d82fcb75
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user