Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zilm13 committed Jan 8, 2025
1 parent 02c6626 commit 9647ad7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void setUp() {

@Test
void shouldReturnValidImmediatelyWhenThereIsTransitionBlockFullyVerified() {
final SignedBlockAndState chainHead = generateNonfinalizedTransition(true);
final SignedBlockAndState chainHead = generateNonFinalizedTransition(true);
storageSystem.chainUpdater().saveBlock(chainHead);
final SignedBlockAndState blockToVerify = storageSystem.chainBuilder().generateNextBlock();

Expand Down Expand Up @@ -114,7 +114,7 @@ void shouldReturnValidImmediatelyWhenThereIsTransitionBlockFullyVerified() {

@Test
void shouldVerifyNonFinalizedAncestorTransitionBlock() {
final SignedBlockAndState transitionBlock = generateNonfinalizedTransition(true);
final SignedBlockAndState transitionBlock = generateNonFinalizedTransition(true);
final SignedBlockAndState chainHead = storageSystem.chainBuilder().getLatestBlockAndState();
final SignedBlockAndState blockToVerify = storageSystem.chainBuilder().generateNextBlock();

Expand Down Expand Up @@ -144,7 +144,7 @@ void shouldVerifyNonFinalizedAncestorTransitionBlock() {

@Test
void shouldReportRootForInvalidNonFinalizedAncestorTransitionBlock() {
final SignedBlockAndState transitionBlock = generateNonfinalizedTransition(false);
final SignedBlockAndState transitionBlock = generateNonFinalizedTransition(false);
final SignedBlockAndState chainHead = storageSystem.chainBuilder().getLatestBlockAndState();
final SignedBlockAndState blockToVerify = storageSystem.chainBuilder().generateNextBlock();

Expand Down Expand Up @@ -229,7 +229,7 @@ void shouldFailWithFatalServiceFailuresExceptionWhenFinalizedAncestorTransitionB
assertThatSafeFuture(result).isCompletedExceptionallyWith(FatalServiceFailureException.class);
}

private SignedBlockAndState generateNonfinalizedTransition(final boolean isValid) {
private SignedBlockAndState generateNonFinalizedTransition(final boolean isValid) {
storageSystem
.chainBuilder()
.generateBlocksUpToSlot(5)
Expand All @@ -254,7 +254,7 @@ private SignedBlockAndState generateNonfinalizedTransition(final boolean isValid
}

private void generateFinalizedTransition(final boolean isValid) {
generateNonfinalizedTransition(isValid);
generateNonFinalizedTransition(isValid);

// Finalize between transition block and chain head
storageSystem.chainUpdater().finalizeEpoch(1);
Expand Down

0 comments on commit 9647ad7

Please sign in to comment.