YARN-6552. Increase YARN test timeouts from 1 second to 10 seconds. Contributed by Eric Badger
This commit is contained in:
parent
2ba9903932
commit
6099deebcb
@ -126,7 +126,7 @@ public void testFailResultCodes() throws Exception {
|
|||||||
assertTrue("Should return an error code", exitCode != 0);
|
assertTrue("Should return an error code", exitCode != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000l)
|
@Test(timeout = 10000l)
|
||||||
public void testInvalidOpts() throws Exception {
|
public void testInvalidOpts() throws Exception {
|
||||||
Configuration conf = new YarnConfiguration();
|
Configuration conf = new YarnConfiguration();
|
||||||
YarnClient mockYarnClient = createMockYarnClient(
|
YarnClient mockYarnClient = createMockYarnClient(
|
||||||
|
@ -39,17 +39,17 @@ private void testComputeShares(SchedulingPolicy policy) {
|
|||||||
policy.computeShares(schedulables, Resources.none());
|
policy.computeShares(schedulables, Resources.none());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testFifoPolicy() {
|
public void testFifoPolicy() {
|
||||||
testComputeShares(SchedulingPolicy.getInstance(FifoPolicy.class));
|
testComputeShares(SchedulingPolicy.getInstance(FifoPolicy.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testFairSharePolicy() {
|
public void testFairSharePolicy() {
|
||||||
testComputeShares(SchedulingPolicy.getInstance(FairSharePolicy.class));
|
testComputeShares(SchedulingPolicy.getInstance(FairSharePolicy.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testDRFPolicy() {
|
public void testDRFPolicy() {
|
||||||
testComputeShares(
|
testComputeShares(
|
||||||
SchedulingPolicy.getInstance(DominantResourceFairnessPolicy.class));
|
SchedulingPolicy.getInstance(DominantResourceFairnessPolicy.class));
|
||||||
|
Loading…
Reference in New Issue
Block a user