소스 검색

HDFS-16168. Fix TestHDFSFileSystemContract.testAppend timeout (#3815)

secfree 3 년 전
부모
커밋
32a78e0b9e
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHDFSFileSystemContract.java

+ 6 - 1
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHDFSFileSystemContract.java

@@ -63,7 +63,12 @@ public class TestHDFSFileSystemContract extends FileSystemContractBaseTest {
     return defaultWorkingDirectory;
   }
 
-  @Test(timeout = 60000)
+  @Override
+  protected int getGlobalTimeout() {
+    return 60 * 1000;
+  }
+
+  @Test
   public void testAppend() throws IOException {
     AppendTestUtil.testAppend(fs, new Path("/testAppend/f"));
   }