From 6099deebcb0ea23adc0f0c62db749c8f528869e9 Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Wed, 10 May 2017 08:47:48 -0500 Subject: [PATCH] YARN-6552. Increase YARN test timeouts from 1 second to 10 seconds. Contributed by Eric Badger --- .../java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java | 2 +- .../scheduler/fair/policies/TestEmptyQueues.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java index 37c859cf5b3..c054209630b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java @@ -126,7 +126,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( diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/policies/TestEmptyQueues.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/policies/TestEmptyQueues.java index 4636c5bbd8d..7511cecc68a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/policies/TestEmptyQueues.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/policies/TestEmptyQueues.java @@ -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));