From 07f3a7e111bad52772ce2ffa77672529da5947ed Mon Sep 17 00:00:00 2001 From: Matilda Clerke Date: Mon, 7 Oct 2024 10:19:39 +1100 Subject: [PATCH] 7311: Fix broken DownloadReceiptsStepTest test Signed-off-by: Matilda Clerke --- .../ethereum/eth/sync/fastsync/DownloadReceiptsStepTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);