Explorar o código

MAPREDUCE-6882. Increase MapReduce test timeouts from 1 second to 10 seconds. Contributed by Eric Badger

(cherry picked from commit 1e71fe8c42b7945170c47023e82a0412397ff57e)
Jason Lowe %!s(int64=8) %!d(string=hai) anos
pai
achega
030d521a69

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestMRWithDistributedCache.java

@@ -223,7 +223,7 @@ public class TestMRWithDistributedCache extends TestCase {
     return p;
   }
 
-  @Test (timeout = 1000)
+  @Test (timeout = 10000)
   public void testDeprecatedFunctions() throws Exception {
     DistributedCache.addLocalArchives(conf, "Test Local Archives 1");
     Assert.assertEquals("Test Local Archives 1",

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestClock.java

@@ -27,7 +27,7 @@ import static org.junit.Assert.*;
  */
 public class TestClock {
 
-  @Test  (timeout=1000)
+  @Test  (timeout=10000)
   public void testClock(){
     Clock clock= new Clock();
     long templateTime=System.currentTimeMillis();

+ 2 - 2
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestClusterStatus.java

@@ -26,14 +26,14 @@ public class TestClusterStatus {
   private ClusterStatus clusterStatus = new ClusterStatus();
 
   @SuppressWarnings("deprecation")
-  @Test (timeout = 1000)
+  @Test (timeout = 10000)
   public void testGraylistedTrackers() {
     Assert.assertEquals(0, clusterStatus.getGraylistedTrackers());
     Assert.assertTrue(clusterStatus.getGraylistedTrackerNames().isEmpty());
   }
 
   @SuppressWarnings("deprecation")
-  @Test (timeout = 1000)
+  @Test (timeout = 10000)
   public void testJobTrackerState() {
     Assert.assertEquals(JobTracker.State.RUNNING,
         clusterStatus.getJobTrackerState());

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestJobConf.java

@@ -163,7 +163,7 @@ public class TestJobConf {
    * old property names
    */
   @SuppressWarnings("deprecation")
-  @Test (timeout = 1000)
+  @Test (timeout = 10000)
   public void testDeprecatedPropertyNameForTaskVmem() {
     JobConf configuration = new JobConf();