-
Notifications
You must be signed in to change notification settings - Fork 454
Restore stability of peers blacklists and disconnections in Network Tests - Closes #2670 #2725
Conversation
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.
What we've agreed to change is:
- To test disconnect/connect, rely on open connections numbers, but not strictly -
should.be.above
is enough as the connections with other peers are just propagating - Due to the indeterministic propagation of connections with other peers after executing connection/disconnection network tests, checking the number of open connections with the other peers is pointless while testing peers blacklist. Check only the "BANNED" state while blacklisting.
Both of those conclusions are not introduced.
Peer disconnection tests are still relying on the strict numbers, but now the timeout is extended from 2 to 4 blocks, peers blacklists are still checking the number of connections, not the statuses only.
397c04a
to
acd6f58
Compare
@MaciejBaj every existing test is meaningful. Remove them or skip them is not the solution. The idea is to reduce the strictness on those problematic tests but, as less as possible while keeping a good balance in between test execution timing and stability. As you can realise the Jenkins trend build, I have found a good stability. It is reasonable and stable to be merged. I want to state again this test suite is very useful for developers. It just needs more love. We should plan to seriously improve it for the future. Several points to perform are:
|
How to test it?
npm test -- mocha:default:network
Review checklist