Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
skip: isWindows ? [
// pubsub.subscribe
{
name: 'should send/receive 100 messages',
reason: 'FIXME https://github.com/ipfs/interface-ipfs-core/pull/188#issuecomment-354673246 and https://github.com/ipfs/go-ipfs/issues/4778'
},
{
name: 'should receive multiple messages',
reason: 'FIXME https://github.com/ipfs/interface-ipfs-core/pull/188#issuecomment-354673246 and https://github.com/ipfs/go-ipfs/issues/4778'
}
] : null
})
tests.repo(commonFactory)
tests.stats(commonFactory)
tests.swarm(commonFactory)
})
tests.ping(defaultCommonFactory, { skip: true })
tests.pubsub(defaultCommonFactory, { skip: true })
tests.repo(defaultCommonFactory, {
skip: [
// repo.gc
{
name: 'gc',
reason: 'TODO: repo.gc is not implemented in js-ipfs yet!'
}
]
})
tests.stats(defaultCommonFactory)
tests.swarm(defaultCommonFactory, { skip: true })
tests.types(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
tests.util(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
test.block(common)
test.bootstrap(common)
test.config(common)
test.dag(common)
test.dht(common)
test.files(common)
test.filesMFS(common)
test.key(common)
test.miscellaneous(common)
test.object(common)
test.pin(common)
test.ping(common)
test.pubsub(common)
test.repo(common)
test.stats(common)
test.swarm(common)
if (err) {
return cb(err)
}
nodes.push(_ipfsd)
cb(null, _ipfsd.api)
})
}
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
}
}
test.stats(common)
if (err) {
return cb(err)
}
nodes.push(_ipfsd)
cb(null, IPFSApi(_ipfsd.apiAddr))
})
}
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
}
}
test.stats(common)
tests.object(commonFactory)
tests.pin(commonFactory)
tests.ping(commonFactory)
tests.pubsub(createFactory(commonOptions, merge(overrides, {
go: {
args: ['--enable-pubsub-experiment']
}
})))
tests.repo(commonFactory)
tests.stats(commonFactory)
tests.swarm(commonFactory)
})
}
].concat(isNode ? [] : [
{
name: 'should subscribe and unsubscribe 10 times',
reason: 'LITE: Max 6 open XHR requests in the browser - https://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browse'
},
{
name: 'should subscribe 10 handlers and unsunscribe once with no reference to the handlers',
reason: 'LITE: Max 6 open XHR requests in the browser - https://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browse'
}
])
})
tests.repo(defaultCommon, { skip: { reason: 'LITE: not implemented yet' } })
tests.stats(defaultCommon, { skip: { reason: 'LITE: not implemented yet' } })
tests.swarm(defaultCommon, {
skip: [
{ name: 'addrs', reason: 'LITE: not implemented yet' },
{ name: 'localAddrs', reason: 'LITE: not implemented yet' },
{ name: 'disconnect', reason: 'LITE: not implemented yet' }
]
})
})
reason: 'https://github.com/ipfs/js-ipfs/issues/2662'
},
{
name: 'should receive multiple messages',
reason: 'https://github.com/ipfs/js-ipfs/issues/2662'
},
{
name: 'should send/receive 100 messages',
reason: 'https://github.com/ipfs/js-ipfs/issues/2662'
}
]
})
tests.repo(commonFactory)
tests.stats(commonFactory)
tests.swarm(commonFactory)
})