diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsFileSystemContract.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsFileSystemContract.java index 6821d9b431..c7df1f7c1d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsFileSystemContract.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsFileSystemContract.java @@ -91,6 +91,11 @@ protected String getDefaultWorkingDirectory() { return defaultWorkingDirectory; } + @Override + protected int getGlobalTimeout() { + return 60 * 1000; + } + /** HDFS throws AccessControlException * when calling exist(..) on a path /foo/bar/file * but /foo/bar is indeed a file in HDFS. @@ -396,7 +401,7 @@ public void testOffsetPlusLengthParamsLongerThanFile() throws IOException { } } - @Test(timeout = 60000) + @Test public void testResponseCode() throws IOException { final WebHdfsFileSystem webhdfs = (WebHdfsFileSystem)fs; final Path root = new Path("/");