diff --git a/src/transport.js b/src/transport.js index f0762c0..3509650 100644 --- a/src/transport.js +++ b/src/transport.js @@ -124,5 +124,3 @@ module.exports = function (swarm) { function dialables (tp, multiaddrs) { return tp.filter(multiaddrs) } - -function noop () {} diff --git a/test/swarm-muxing.node.js b/test/swarm-muxing.node.js index c7d432a..941260e 100644 --- a/test/swarm-muxing.node.js +++ b/test/swarm-muxing.node.js @@ -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())