-
Notifications
You must be signed in to change notification settings - Fork 130
[PAN-2727] Permissioning Acceptance Test - Verify OnChain Nodes Out of Sync #1759
Conversation
-- Verify that while a new node is being added and is out of sync, it doesnt accept connections, it accepts connection once it is synced
|
||
@Test | ||
public void testOutOfSyncNodeConnectionToPeers() { | ||
final long blockChainHeight = 50L; |
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.
nit: s/blockChain/blockchain
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.
is 50 enough for a reliable test?
} | ||
|
||
@Test | ||
public void testOutOfSyncNodeConnectionToPeers() { |
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.
prob could have a better test name - maybe addingNodeToClusterSyncsAndThenConnectsToNonBootnodePeer
-- Incorporating review suggestions
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.
The test logic looks good. We need to keep an eye on this test to ensure it won't be flaky.
…f Sync (PegaSysEng#1759) -- Verify that while a new node is being added and is out of sync, it doesn't accept connections, it accepts connection once it is synced
PR description
Add acceptance test that verifies that while a new node is being added to OnChain and is out of sync, it doesn't accept connections. Once synced, it starts accepts connection from allowed nodes.