Skip to content

Commit 2cef38b

Browse files
committed
add timeout for other unit tests
1 parent 441215b commit 2cef38b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected String getDefaultWorkingDirectory() {
6363
return defaultWorkingDirectory;
6464
}
6565

66-
@Test
66+
@Test(timeout = 60000)
6767
public void testAppend() throws IOException {
6868
AppendTestUtil.testAppend(fs, new Path("/testAppend/f"));
6969
}

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestSnapshotCommands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void testSnapshotCommandsWithURI()throws Exception {
224224
fs.delete(new Path("/Fully/QPath"), true);
225225
}
226226

227-
@Test (timeout=60000)
227+
@Test (timeout=120000)
228228
public void testSnapshotDiff()throws Exception {
229229
Configuration config = new HdfsConfiguration();
230230
Path snapDirPath = new Path(fs.getUri().toString() + "/snap_dir");

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/diskbalancer/command/TestDiskBalancerCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void testSubmitPlanInNonRegularStatus() throws Exception {
158158
* Tests running multiple commands under on setup. This mainly covers
159159
* {@link org.apache.hadoop.hdfs.server.diskbalancer.command.Command#close}
160160
*/
161-
@Test(timeout = 60000)
161+
@Test(timeout = 120000)
162162
public void testRunMultipleCommandsUnderOneSetup() throws Exception {
163163

164164
final int numDatanodes = 1;

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeStorageDirectives.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private void testStorageTypes(StorageType[][] storageTypes,
192192
* Types.
193193
* @throws IOException
194194
*/
195-
@Test(timeout=60000)
195+
@Test(timeout=120000)
196196
public void testTargetStorageTypes() throws ReconfigurationException,
197197
InterruptedException, TimeoutException, IOException {
198198
// DISK and not anything else.

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsFileSystemContract.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public void testOffsetPlusLengthParamsLongerThanFile() throws IOException {
396396
}
397397
}
398398

399-
@Test
399+
@Test(timeout = 60000)
400400
public void testResponseCode() throws IOException {
401401
final WebHdfsFileSystem webhdfs = (WebHdfsFileSystem)fs;
402402
final Path root = new Path("/");

0 commit comments

Comments
 (0)