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

This commit is contained in:
Jason Lowe 2017-05-10 09:57:41 -05:00
parent 6099deebcb
commit 1e71fe8c42
4 changed files with 5 additions and 5 deletions

View File

@ -223,7 +223,7 @@ private Path makeJar(Path p, int index) throws FileNotFoundException,
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",

View File

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

View File

@ -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());

View File

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