|
|
@ -91,7 +91,7 @@ public class ImportBlocksStepTest { |
|
|
|
blockWithReceipts.getReceipts(), |
|
|
|
blockWithReceipts.getReceipts(), |
|
|
|
FULL, |
|
|
|
FULL, |
|
|
|
LIGHT, |
|
|
|
LIGHT, |
|
|
|
BodyValidationMode.FULL)) |
|
|
|
BodyValidationMode.LIGHT)) |
|
|
|
.thenReturn(new BlockImportResult(true)); |
|
|
|
.thenReturn(new BlockImportResult(true)); |
|
|
|
} |
|
|
|
} |
|
|
|
importBlocksStep.accept(blocksWithReceipts); |
|
|
|
importBlocksStep.accept(blocksWithReceipts); |
|
|
@ -113,7 +113,7 @@ public class ImportBlocksStepTest { |
|
|
|
blockWithReceipts.getReceipts(), |
|
|
|
blockWithReceipts.getReceipts(), |
|
|
|
FULL, |
|
|
|
FULL, |
|
|
|
LIGHT, |
|
|
|
LIGHT, |
|
|
|
BodyValidationMode.FULL)) |
|
|
|
BodyValidationMode.LIGHT)) |
|
|
|
.thenReturn(new BlockImportResult(false)); |
|
|
|
.thenReturn(new BlockImportResult(false)); |
|
|
|
assertThatThrownBy(() -> importBlocksStep.accept(singletonList(blockWithReceipts))) |
|
|
|
assertThatThrownBy(() -> importBlocksStep.accept(singletonList(blockWithReceipts))) |
|
|
|
.isInstanceOf(InvalidBlockException.class); |
|
|
|
.isInstanceOf(InvalidBlockException.class); |
|
|
|