Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This expands the nodes domain testing that was skipped during the nodes refactoring rush.
Issues Fixed
NodeManager
tests from decentralised nodes refactor #642Tasks
findNode
operations handle offline nodes/connection failures. Make sure that a single failing connection wont take up the full timeout of the process.syncNodeGraph
, connects to 2 seed nodes and check we discover all active nodes in the network. Include active connection and direct connection links.syncNodegraph
handles offline nodes - just checking if we can handle offline nodes for the initial connections. The other connections are done byfindNode
. Also check that including our ownNodeId
in the initial connections list wont break.refreshBucket
triggers afindNode
operation within that bucket. Not really worth the test.NodeGraph
updates when a connection is made.MDNS
functionality. On that note, we need a way to disable it for testing so it doesn't break thefindNode
tests. Maybe just mock it out for most tests.Final checklist