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

Commit d3985a8

Browse files
committed
fix: add connect call
1 parent 5c7df41 commit d3985a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pubsub.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,14 @@ module.exports = (common) => {
257257
})
258258

259259
describe('multiple nodes', () => {
260+
before((done) => {
261+
ipfs2.id((err, id) => {
262+
expect(err).to.not.exist
263+
const ipfs2Addr = id.addresses[0]
264+
ipfs1.swarm.connect(ipfs2Addr, done)
265+
})
266+
})
267+
260268
it('receive messages from different node', (done) => {
261269
const expectedString = 'hello from the other side'
262270

0 commit comments

Comments
 (0)