HDFS-13268. TestWebHdfsFileContextMainOperations fails on Windows. Contributed by Xiao Liang.
This commit is contained in:
parent
3ff6977d3e
commit
fe224ff972
@ -43,7 +43,7 @@ public final class FileContextTestHelper {
|
||||
* Create a context with test root relative to the test directory
|
||||
*/
|
||||
public FileContextTestHelper() {
|
||||
this(GenericTestUtils.getRandomizedTestDir().getAbsolutePath());
|
||||
this(GenericTestUtils.getRandomizedTestDir().getPath());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -83,7 +83,7 @@ public String getAbsoluteTestRootDir(FileContext fc) {
|
||||
absTestRootDir = testRootDir;
|
||||
} else {
|
||||
absTestRootDir = fc.getWorkingDirectory().toString() + "/"
|
||||
+ testRootDir;
|
||||
+ new Path(testRootDir).toUri();
|
||||
}
|
||||
}
|
||||
return absTestRootDir;
|
||||
|
Loading…
Reference in New Issue
Block a user