Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Nov 27, 2024
1 parent 59a16c1 commit 301cb55
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void beforeEach(final TestSpecInvocationContextProvider.SpecContext specContext)
storageSystem = InMemoryStorageSystemBuilder.buildDefault(spec);
chainBuilder = ChainBuilder.create(spec, VALIDATOR_KEYS);

chainUpdater = new ChainUpdater(storageSystem.recentChainData(), chainBuilder);
chainUpdater = new ChainUpdater(storageSystem.recentChainData(), chainBuilder, spec);

performanceTracker =
new DefaultPerformanceTracker(
Expand Down Expand Up @@ -240,7 +240,9 @@ void shouldDisplayIncorrectHeadBlockRoot() {
chainUpdater.saveBlock(blockAndState1);
chainUpdater.updateBestBlock(blockAndState1);

SignedBlockAndState blockAndState = chainUpdaterFork.advanceChainUntil(8);
chainUpdaterFork.advanceChainUntil(7);
SignedBlockAndState blockAndState = chainBuilder.getBlockAndStateAtSlot(8);
chainUpdaterFork.updateBestBlock(blockAndState);
ChainBuilder.BlockOptions block2Options = ChainBuilder.BlockOptions.create();
AttestationGenerator attestationGenerator =
new AttestationGenerator(spec, chainBuilder.getValidatorKeys());
Expand Down

0 comments on commit 301cb55

Please sign in to comment.