YARN-6552. Increase YARN test timeouts from 1 second to 10 seconds. Contributed by Eric Badger

(cherry picked from commit 6099deebcb)
This commit is contained in:
Jason Lowe 2017-05-10 08:47:48 -05:00
parent d9c3c78b78
commit 3230dd1ab6
2 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ public class TestLogsCLI {
assertTrue("Should return an error code", exitCode != 0);
}
@Test(timeout = 1000l)
@Test(timeout = 10000l)
public void testInvalidOpts() throws Exception {
Configuration conf = new YarnConfiguration();
YarnClient mockYarnClient = createMockYarnClient(

View File

@ -39,17 +39,17 @@ public class TestEmptyQueues {
policy.computeShares(schedulables, Resources.none());
}
@Test (timeout = 1000)
@Test (timeout = 10000)
public void testFifoPolicy() {
testComputeShares(SchedulingPolicy.getInstance(FifoPolicy.class));
}
@Test (timeout = 1000)
@Test (timeout = 10000)
public void testFairSharePolicy() {
testComputeShares(SchedulingPolicy.getInstance(FairSharePolicy.class));
}
@Test (timeout = 1000)
@Test (timeout = 10000)
public void testDRFPolicy() {
testComputeShares(
SchedulingPolicy.getInstance(DominantResourceFairnessPolicy.class));