HDFS-10415. TestDistributedFileSystem#MyDistributedFileSystem attempts to set up statistics before initialize() is called (Mingliang Liu via cmccabe)
This commit is contained in:
parent
83f2f78c11
commit
29d6cadc52
|
@ -359,7 +359,6 @@ public class TestDistributedFileSystem {
|
||||||
|
|
||||||
private static class MyDistributedFileSystem extends DistributedFileSystem {
|
private static class MyDistributedFileSystem extends DistributedFileSystem {
|
||||||
MyDistributedFileSystem() {
|
MyDistributedFileSystem() {
|
||||||
statistics = new FileSystem.Statistics("myhdfs"); // can't mock finals
|
|
||||||
dfs = mock(DFSClient.class);
|
dfs = mock(DFSClient.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue