|
@@ -71,6 +71,7 @@ public class TestCommitBlockSynchronization {
|
|
|
blockInfo.initializeBlockRecovery(genStamp);
|
|
|
doReturn(true).when(file).removeLastBlock(any(Block.class));
|
|
|
doReturn(true).when(file).isUnderConstruction();
|
|
|
+ doReturn(new BlockInfoContiguous[1]).when(file).getBlocks();
|
|
|
|
|
|
doReturn(blockInfo).when(namesystemSpy).getStoredBlock(any(Block.class));
|
|
|
doReturn(blockInfo).when(file).getLastBlock();
|