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

Commit f2fdd08

Browse files
committed
check if it is go-ipfs instead
1 parent 8ca5429 commit f2fdd08

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/pubsub.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ module.exports = (common) => {
6767
let ipfs1
6868
let ipfs2
6969
let ipfs3
70+
let isGoIPFS
7071

7172
before(function (done) {
7273
// CI takes longer to instantiate the daemon, so we need to increase the
@@ -90,6 +91,8 @@ module.exports = (common) => {
9091
ipfs1 = nodes[0]
9192
ipfs2 = nodes[1]
9293
ipfs3 = nodes[2]
94+
95+
isGoIPFS = ipfs1.id.agentVersion.startsWith('go-ipfs')
9396
done()
9497
})
9598
})
@@ -493,7 +496,10 @@ module.exports = (common) => {
493496
})
494497
})
495498

496-
it.skip('receive multiple messages', (done) => {
499+
it('receive multiple messages', (done) => {
500+
// TODO fix https://github.com/ipfs/interface-ipfs-core/pull/188#issuecomment-354673246
501+
if (isGoIPFS) { return done() }
502+
497503
const inbox1 = []
498504
const inbox2 = []
499505
const outbox = ['hello', 'world', 'this', 'is', 'pubsub']
@@ -561,7 +567,10 @@ module.exports = (common) => {
561567
)
562568
})
563569

564-
it.skip('send/receive 10k messages', (done) => {
570+
it('send/receive 10k messages', (done) => {
571+
// TODO fix https://github.com/ipfs/interface-ipfs-core/pull/188#issuecomment-354673246
572+
if (isGoIPFS) { return done() }
573+
565574
this.timeout(2 * 60 * 1000)
566575

567576
const msgBase = 'msg - '

0 commit comments

Comments
 (0)