Fix unit test

Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
pull/7896/head
Gabriel-Trintinalia 1 day ago
parent d916518e3b
commit 88b03aee3e
  1. 4
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/ImportBlocksStepTest.java

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

Loading…
Cancel
Save