diff --git a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStepTest.java b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStepTest.java index c349df1c38..554e09c3e9 100644 --- a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStepTest.java +++ b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStepTest.java @@ -124,8 +124,8 @@ public class DownloadReceiptsStepTest { PeerTaskExecutorResult>> peerTaskResult = new PeerTaskExecutorResult<>( Optional.of(receiptsMap), PeerTaskExecutorResponseCode.SUCCESS); - Mockito.when(peerTaskExecutor.executeAsync(Mockito.any(GetReceiptsFromPeerTask.class))) - .thenReturn(CompletableFuture.completedFuture(peerTaskResult)); + Mockito.when(peerTaskExecutor.execute(Mockito.any(GetReceiptsFromPeerTask.class))) + .thenReturn(peerTaskResult); final CompletableFuture> result = downloadReceiptsStep.apply(blocks);