Revert "HDFS-13287. TestINodeFile#testGetBlockType results in NPE when run alone. Contributed by Virajith Jalaparti."
This reverts commit a1c3868c4f
.
This commit is contained in:
parent
48e564f7e2
commit
d3ac516665
|
@ -296,7 +296,6 @@ public class TestINodeFile {
|
||||||
preferredBlockSize = 128*1024*1024;
|
preferredBlockSize = 128*1024*1024;
|
||||||
INodeFile inf = createINodeFile(replication, preferredBlockSize);
|
INodeFile inf = createINodeFile(replication, preferredBlockSize);
|
||||||
assertEquals(inf.getBlockType(), CONTIGUOUS);
|
assertEquals(inf.getBlockType(), CONTIGUOUS);
|
||||||
ErasureCodingPolicyManager.getInstance().init(new Configuration());
|
|
||||||
INodeFile striped = createStripedINodeFile(preferredBlockSize);
|
INodeFile striped = createStripedINodeFile(preferredBlockSize);
|
||||||
assertEquals(striped.getBlockType(), STRIPED);
|
assertEquals(striped.getBlockType(), STRIPED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue