|
@@ -177,6 +177,7 @@ public class TestLeafQueue {
|
|
setupQueueConfiguration(csConf, newRoot);
|
|
setupQueueConfiguration(csConf, newRoot);
|
|
YarnConfiguration conf = new YarnConfiguration();
|
|
YarnConfiguration conf = new YarnConfiguration();
|
|
cs.setConf(conf);
|
|
cs.setConf(conf);
|
|
|
|
+ when(spyRMContext.getYarnConfiguration()).thenReturn(conf);
|
|
|
|
|
|
csContext = mock(CapacitySchedulerContext.class);
|
|
csContext = mock(CapacitySchedulerContext.class);
|
|
when(csContext.getConfiguration()).thenReturn(csConf);
|
|
when(csContext.getConfiguration()).thenReturn(csConf);
|