Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Add 100% test coverage. #7

Merged
merged 1 commit into from
May 10, 2016
Merged

Conversation

hackergrrl
Copy link
Contributor

This also removes the default behaviour of setting peerInfo to /ip4/0.0.0.0/tcp/0 when it's not provided: this object doesn't get exposed anywhere, so there's no way to know what port ended up being chosen anyway. In the interest of being explicit, an error is instead thrown.

@hackergrrl
Copy link
Contributor Author

Tests failing due to libp2p/js-libp2p-switch#50

@daviddias
Copy link
Collaborator

this object doesn't get exposed anywhere

Not true. Swarm updates the addrs if any was modified, as something that gets return by the listener.

https://github.com/diasdavid/js-libp2p-swarm/blob/master/src/index.js#L107-L118

@hackergrrl hackergrrl force-pushed the coverage branch 2 times, most recently from a91698b to 537fcb1 Compare May 10, 2016 15:20
@hackergrrl
Copy link
Contributor Author

done

@daviddias daviddias merged commit 8c0800b into ipfs-inactive:master May 10, 2016
@daviddias
Copy link
Collaborator

thank you 👍

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.

2 participants