Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lehrner <[email protected]>
  • Loading branch information
daniellehrner committed Jun 21, 2024
1 parent 8c04d0a commit 452a197
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 452a197

Please sign in to comment.