-
Notifications
You must be signed in to change notification settings - Fork 130
Add AT to ensure 0-miner Clique/IBFT are valid #1525
Conversation
|
||
@Test | ||
public void startingWithZeroValidatorsProducesValidCluster() throws IOException { | ||
final String[] validators = {""}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just {} as is done for the ibft test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
public class CliqueZeroValidators extends AcceptanceTestBase { | ||
|
||
@Test | ||
public void startingWithZeroValidatorsProducesValidCluster() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps use shorter test name "zeroValidatorsFormValidCluster" that was used in the Clique test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
final PantheonNode node2 = pantheon.createCliqueNodeWithValidators("node2", validators); | ||
cluster.start(node1, node2); | ||
|
||
node1.verify(net.awaitPeerCount(1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should validate both nodes have correct peer count, so cluster.verify(net.awaitPeerCount(1))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
||
cluster.start(node1, node2); | ||
|
||
node1.verify(net.awaitPeerCount(1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should validate both nodes have correct peer count, so cluster.verify(net.awaitPeerCount(1))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
No description provided.