Skip to content

Commit

Permalink
remove unused mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Oct 14, 2024
1 parent 58f4a77 commit 9c7d681
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
package tech.pegasys.teku.services.chainstorage;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.*;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.anyInt;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.io.File;
import java.nio.file.Path;
import java.util.Optional;
import org.hyperledger.besu.plugin.services.MetricsSystem;
Expand All @@ -42,7 +44,6 @@ class StorageServiceTest {
private final StorageConfiguration storageConfiguration = mock(StorageConfiguration.class);
private final MetricsSystem metricsSystem = mock(MetricsSystem.class);
private final DataDirLayout dataDirLayout = mock(DataDirLayout.class);
private final File file = mock(File.class);
private final Eth1Address eth1DepositContract = mock(Eth1Address.class);
private final Spec spec = mock(Spec.class);
private final EventChannels eventChannels = mock(EventChannels.class);
Expand All @@ -61,7 +62,6 @@ void setUp(@TempDir final Path tempDir) {
when(storageConfiguration.getEth1DepositContract()).thenReturn(eth1DepositContract);
when(storageConfiguration.isStoreNonCanonicalBlocksEnabled()).thenReturn(false);
when(storageConfiguration.getSpec()).thenReturn(spec);
when(file.toPath()).thenReturn(tempDir);

when(eventChannels.subscribe(any(), any())).thenReturn(eventChannels);
when(serviceConfig.getEventChannels()).thenReturn(eventChannels);
Expand Down

0 comments on commit 9c7d681

Please sign in to comment.