Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Commit

Permalink
test: Linux does not like that we use multiple sockets with port 0
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Feb 7, 2018
1 parent ea84d97 commit 9121dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,3 @@ module.exports = function (swarm) {
function dialables (tp, multiaddrs) {
return tp.filter(multiaddrs)
}

function noop () {}
6 changes: 3 additions & 3 deletions test/swarm-muxing.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ describe('Switch (everything all together)', () => {
})

it('add tcp', (done) => {
switchA._peerInfo.multiaddrs.add('/ip4/127.0.0.1/tcp/0')
switchB._peerInfo.multiaddrs.add('/ip4/127.0.0.1/tcp/0')
switchC._peerInfo.multiaddrs.add('/ip4/127.0.0.1/tcp/0')
switchA._peerInfo.multiaddrs.add('/ip4/127.0.0.1/tcp/10100')
switchB._peerInfo.multiaddrs.add('/ip4/127.0.0.1/tcp/10200')
switchC._peerInfo.multiaddrs.add('/ip4/127.0.0.1/tcp/10300')

switchA.transport.add('tcp', new TCP())
switchB.transport.add('tcp', new TCP())
Expand Down

0 comments on commit 9121dca

Please sign in to comment.