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

Commit

Permalink
fix(pubsub): swarm connect to local servers (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider authored and daviddias committed Nov 22, 2017
1 parent 43e9a9a commit 09d9573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ module.exports = (common) => {
describe('multiple nodes connected', () => {
before((done) => {
parallel([
(cb) => ipfs1.swarm.connect(ipfs2.peerId.addresses[0], cb),
(cb) => ipfs2.swarm.connect(ipfs3.peerId.addresses[0], cb),
(cb) => ipfs1.swarm.connect(ipfs3.peerId.addresses[0], cb)
(cb) => ipfs1.swarm.connect(ipfs2.peerId.addresses.find(a => a.includes('127.0.0.1')), cb),
(cb) => ipfs2.swarm.connect(ipfs3.peerId.addresses.find(a => a.includes('127.0.0.1')), cb),
(cb) => ipfs1.swarm.connect(ipfs3.peerId.addresses.find(a => a.includes('127.0.0.1')), cb)
], (err) => {
if (err) {
return done(err)
Expand Down

0 comments on commit 09d9573

Please sign in to comment.