From 452a1973c7267f4f2f96ef3dea769ec20a36d671 Mon Sep 17 00:00:00 2001 From: Daniel Lehrner Date: Fri, 21 Jun 2024 16:23:34 +0200 Subject: [PATCH] Fix flaky test Signed-off-by: Daniel Lehrner --- .../tests/acceptance/crypto/SECP256R1AcceptanceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/crypto/SECP256R1AcceptanceTest.java b/acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/crypto/SECP256R1AcceptanceTest.java index 7488b0603e8..27679463bfd 100644 --- a/acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/crypto/SECP256R1AcceptanceTest.java +++ b/acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/crypto/SECP256R1AcceptanceTest.java @@ -66,6 +66,12 @@ public void setUp() throws Exception { besu.createNodeWithNonDefaultSignatureAlgorithm( "otherNode", GENESIS_FILE, otherNodeKeyPair, List.of(minerNode)); noDiscoveryCluster.addNode(otherNode); + + minerNode.verify(net.awaitPeerCount(1)); + otherNode.verify(net.awaitPeerCount(1)); + + final var minerChainHead = minerNode.execute(ethTransactions.block()); + otherNode.verify(blockchain.minimumHeight(minerChainHead.getNumber().longValue())); } @Test