Skip to content

Commit

Permalink
HDFS-16392. Fix TestWebHdfsFileSystemContract#testResponseCode timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
secfree committed Dec 20, 2021
1 parent 746b328 commit ebee32c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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("/");
Expand Down

0 comments on commit ebee32c

Please sign in to comment.