Browse Source

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

secfree 3 years ago
parent
commit
32a78e0b9e

+ 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;
     return defaultWorkingDirectory;
   }
   }
 
 
-  @Test(timeout = 60000)
+  @Override
+  protected int getGlobalTimeout() {
+    return 60 * 1000;
+  }
+
+  @Test
   public void testAppend() throws IOException {
   public void testAppend() throws IOException {
     AppendTestUtil.testAppend(fs, new Path("/testAppend/f"));
     AppendTestUtil.testAppend(fs, new Path("/testAppend/f"));
   }
   }