diff --git a/services/chainstorage/src/test/java/tech/pegasys/teku/services/chainstorage/StorageServiceTest.java b/services/chainstorage/src/test/java/tech/pegasys/teku/services/chainstorage/StorageServiceTest.java index 2f588c3a5d7..0d19a70753e 100644 --- a/services/chainstorage/src/test/java/tech/pegasys/teku/services/chainstorage/StorageServiceTest.java +++ b/services/chainstorage/src/test/java/tech/pegasys/teku/services/chainstorage/StorageServiceTest.java @@ -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; @@ -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); @@ -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);