Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

fix: do not rely on discovery for ping tests #311

Merged
merged 1 commit into from
Jun 26, 2018

Conversation

alanshaw
Copy link
Contributor

The ping tests do not need to test that peers can discover each other. This PR removes the waitUntilConnected utility and explicitly connects the nodes that are used in the tests.

fixes #310

fixes #310

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
@alanshaw alanshaw requested a review from travisperson June 26, 2018 13:10
@alanshaw alanshaw requested a review from victorb as a code owner June 26, 2018 13:10
@ghost ghost assigned alanshaw Jun 26, 2018
@ghost ghost added the in progress label Jun 26, 2018
spawnNodes(n, factory, (err, nodes) => {
if (err) return callback(err)
map(nodes, identify, callback)
})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies the change in this file should have been proposed a separate PR - this simply ensures the ID calls are done in parallel which will speed up the tests a little.

@travisperson
Copy link
Contributor

LGTM!

@alanshaw alanshaw merged commit c0edbc5 into master Jun 26, 2018
@ghost ghost removed the in progress label Jun 26, 2018
@alanshaw alanshaw deleted the fix/ping-tests-discovery branch June 26, 2018 18:57
alanshaw added a commit that referenced this pull request Jun 26, 2018
As per original PR #311

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
alanshaw added a commit that referenced this pull request Jun 26, 2018
As per original PR #311

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

util: waitUntilConnected
2 participants