Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Oct 30, 2024
1 parent 907cf52 commit ed154d1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

package tech.pegasys.teku.validator.coordinator.publisher;

import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
Expand Down Expand Up @@ -50,7 +49,9 @@ class BlockPublisherPhase0Test {

@BeforeEach
void setUp() {
when(blockGossipChannel.publishBlock(any())).thenReturn(SafeFuture.COMPLETE);
when(blockGossipChannel.publishBlock(signedBlock)).thenReturn(SafeFuture.COMPLETE);
when(blockImportChannel.importBlock(signedBlock, BroadcastValidationLevel.NOT_REQUIRED))
.thenReturn(SafeFuture.completedFuture(null));
}

@Test
Expand Down

0 comments on commit ed154d1

Please sign in to comment.