Fix typo in method name (#3446)

Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
pull/3451/head
Lucas Saldanha 3 years ago committed by GitHub
parent 1c263283a9
commit 629d986c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      consensus/qbft/src/integration-test/java/org/hyperledger/besu/consensus/qbft/support/RoundSpecificPeers.java
  2. 14
      consensus/qbft/src/integration-test/java/org/hyperledger/besu/consensus/qbft/test/GossipTest.java

@ -168,7 +168,7 @@ public class RoundSpecificPeers {
verifyMessagesReceived(candidates, msgs);
}
public final void verifyMessagesReceivedNonPropsing(final BftMessage<?>... msgs) {
public final void verifyMessagesReceivedNonProposing(final BftMessage<?>... msgs) {
verifyMessagesReceived(nonProposingPeers, msgs);
}

@ -79,15 +79,15 @@ public class GossipTest {
final Proposal proposal = sender.injectProposal(roundId, block);
// sender node will have a prepare message as an effect of the proposal being sent
peers.verifyMessagesReceivedNonPropsing(proposal, localPrepare);
peers.verifyMessagesReceivedNonProposing(proposal, localPrepare);
peers.verifyMessagesReceivedProposer(localPrepare);
final Prepare prepare = sender.injectPrepare(roundId, block.getHash());
peers.verifyMessagesReceivedNonPropsing(prepare);
peers.verifyMessagesReceivedNonProposing(prepare);
peers.verifyNoMessagesReceivedProposer();
final Commit commit = sender.injectCommit(roundId, block);
peers.verifyMessagesReceivedNonPropsing(commit);
peers.verifyMessagesReceivedNonProposing(commit);
peers.verifyNoMessagesReceivedProposer();
final RoundChange roundChange = msgFactory.createRoundChange(roundId, Optional.empty());
@ -98,18 +98,18 @@ public class GossipTest {
Collections.singletonList(roundChange.getSignedPayload()),
roundChange.getPrepares(),
block);
peers.verifyMessagesReceivedNonPropsing(nextRoundProposal);
peers.verifyMessagesReceivedNonProposing(nextRoundProposal);
peers.verifyNoMessagesReceivedProposer();
sender.injectRoundChange(roundId, Optional.empty());
peers.verifyMessagesReceivedNonPropsing(roundChange);
peers.verifyMessagesReceivedNonProposing(roundChange);
peers.verifyNoMessagesReceivedProposer();
}
@Test
public void onlyGossipOnce() {
final Prepare prepare = sender.injectPrepare(roundId, block.getHash());
peers.verifyMessagesReceivedNonPropsing(prepare);
peers.verifyMessagesReceivedNonProposing(prepare);
sender.injectPrepare(roundId, block.getHash());
peers.verifyNoMessagesReceivedNonProposing();
@ -173,6 +173,6 @@ public class GossipTest {
.getController()
.handleNewBlockEvent(new NewChainHead(signedCurrentHeightBlock.getHeader()));
peers.verifyMessagesReceivedNonPropsing(futurePrepare);
peers.verifyMessagesReceivedNonProposing(futurePrepare);
}
}

Loading…
Cancel
Save