MAPREDUCE-6882. Increase MapReduce test timeouts from 1 second to 10 seconds. Contributed by Eric Badger
(cherry picked from commit 1e71fe8c42
)
This commit is contained in:
parent
f32db1be1e
commit
030d521a69
|
@ -223,7 +223,7 @@ public class TestMRWithDistributedCache extends TestCase {
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testDeprecatedFunctions() throws Exception {
|
public void testDeprecatedFunctions() throws Exception {
|
||||||
DistributedCache.addLocalArchives(conf, "Test Local Archives 1");
|
DistributedCache.addLocalArchives(conf, "Test Local Archives 1");
|
||||||
Assert.assertEquals("Test Local Archives 1",
|
Assert.assertEquals("Test Local Archives 1",
|
||||||
|
|
|
@ -27,7 +27,7 @@ import static org.junit.Assert.*;
|
||||||
*/
|
*/
|
||||||
public class TestClock {
|
public class TestClock {
|
||||||
|
|
||||||
@Test (timeout=1000)
|
@Test (timeout=10000)
|
||||||
public void testClock(){
|
public void testClock(){
|
||||||
Clock clock= new Clock();
|
Clock clock= new Clock();
|
||||||
long templateTime=System.currentTimeMillis();
|
long templateTime=System.currentTimeMillis();
|
||||||
|
|
|
@ -26,14 +26,14 @@ public class TestClusterStatus {
|
||||||
private ClusterStatus clusterStatus = new ClusterStatus();
|
private ClusterStatus clusterStatus = new ClusterStatus();
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testGraylistedTrackers() {
|
public void testGraylistedTrackers() {
|
||||||
Assert.assertEquals(0, clusterStatus.getGraylistedTrackers());
|
Assert.assertEquals(0, clusterStatus.getGraylistedTrackers());
|
||||||
Assert.assertTrue(clusterStatus.getGraylistedTrackerNames().isEmpty());
|
Assert.assertTrue(clusterStatus.getGraylistedTrackerNames().isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testJobTrackerState() {
|
public void testJobTrackerState() {
|
||||||
Assert.assertEquals(JobTracker.State.RUNNING,
|
Assert.assertEquals(JobTracker.State.RUNNING,
|
||||||
clusterStatus.getJobTrackerState());
|
clusterStatus.getJobTrackerState());
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class TestJobConf {
|
||||||
* old property names
|
* old property names
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Test (timeout = 1000)
|
@Test (timeout = 10000)
|
||||||
public void testDeprecatedPropertyNameForTaskVmem() {
|
public void testDeprecatedPropertyNameForTaskVmem() {
|
||||||
JobConf configuration = new JobConf();
|
JobConf configuration = new JobConf();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue