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

Commit 09d9573

Browse files
richardschneiderdaviddias
authored andcommitted
fix(pubsub): swarm connect to local servers (#175)
1 parent 43e9a9a commit 09d9573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pubsub.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ module.exports = (common) => {
201201
describe('multiple nodes connected', () => {
202202
before((done) => {
203203
parallel([
204-
(cb) => ipfs1.swarm.connect(ipfs2.peerId.addresses[0], cb),
205-
(cb) => ipfs2.swarm.connect(ipfs3.peerId.addresses[0], cb),
206-
(cb) => ipfs1.swarm.connect(ipfs3.peerId.addresses[0], cb)
204+
(cb) => ipfs1.swarm.connect(ipfs2.peerId.addresses.find(a => a.includes('127.0.0.1')), cb),
205+
(cb) => ipfs2.swarm.connect(ipfs3.peerId.addresses.find(a => a.includes('127.0.0.1')), cb),
206+
(cb) => ipfs1.swarm.connect(ipfs3.peerId.addresses.find(a => a.includes('127.0.0.1')), cb)
207207
], (err) => {
208208
if (err) {
209209
return done(err)

0 commit comments

Comments
 (0)