Skip to content

Commit

Permalink
7311: clean up after merge
Browse files Browse the repository at this point in the history
Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
  • Loading branch information
Matilda-Clerke committed Oct 9, 2024
1 parent e9d08f3 commit 20478d3
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,6 @@ public PeerTaskExecutorResult<Map<BlockHeader, List<TransactionReceipt>>> answer
return processTask(task);
}
});

when(peerTaskExecutor.execute(any(GetReceiptsFromPeerTask.class)))
.thenAnswer(
new Answer<
CompletableFuture<
PeerTaskExecutorResult<Map<BlockHeader, List<TransactionReceipt>>>>>() {
@Override
public CompletableFuture<
PeerTaskExecutorResult<Map<BlockHeader, List<TransactionReceipt>>>>
answer(final InvocationOnMock invocationOnMock) throws Throwable {
GetReceiptsFromPeerTask task =
invocationOnMock.getArgument(0, GetReceiptsFromPeerTask.class);

return CompletableFuture.completedFuture(processTask(task));
}
});
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 20478d3

Please sign in to comment.