YARN-9784. org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestLeafQueue is flaky. Contributed by Julia Kinga Marton.
This commit is contained in:
parent
e8ca4fac53
commit
162af6f554
|
@ -214,12 +214,12 @@ public class TestLeafQueue {
|
||||||
cs.setRMContext(spyRMContext);
|
cs.setRMContext(spyRMContext);
|
||||||
cs.init(csConf);
|
cs.init(csConf);
|
||||||
cs.setResourceCalculator(rC);
|
cs.setResourceCalculator(rC);
|
||||||
cs.start();
|
|
||||||
|
|
||||||
when(spyRMContext.getScheduler()).thenReturn(cs);
|
when(spyRMContext.getScheduler()).thenReturn(cs);
|
||||||
when(spyRMContext.getYarnConfiguration())
|
when(spyRMContext.getYarnConfiguration())
|
||||||
.thenReturn(new YarnConfiguration());
|
.thenReturn(new YarnConfiguration());
|
||||||
when(cs.getNumClusterNodes()).thenReturn(3);
|
when(cs.getNumClusterNodes()).thenReturn(3);
|
||||||
|
cs.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue