From b075a917df8030372754af6c0130d422ecefaace Mon Sep 17 00:00:00 2001 From: Matilda Clerke Date: Fri, 18 Oct 2024 10:29:53 +1100 Subject: [PATCH] 7311: Fix broken unit test Signed-off-by: Matilda Clerke --- .../ethereum/eth/manager/peertask/PeerTaskExecutorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskExecutorTest.java b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskExecutorTest.java index 4226f3a133..0262e276da 100644 --- a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskExecutorTest.java +++ b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskExecutorTest.java @@ -107,7 +107,7 @@ public class PeerTaskExecutorTest { PeerTaskExecutorResult result = peerTaskExecutor.executeAgainstPeer(peerTask, ethPeer); Assertions.assertNotNull(result); - Assertions.assertTrue(result.result().isEmpty()); + Assertions.assertTrue(result.result().isPresent()); Assertions.assertEquals(PeerTaskExecutorResponseCode.INVALID_RESPONSE, result.responseCode()); }