Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Feb 20, 2017
1 parent d95fd61 commit de9c2dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/core/components/go-online.js
Expand Up @@ -20,8 +20,11 @@ module.exports = (self) => {
self._peerInfoBook
)

self._pubsub = new FloodSub(self._libp2pNode)
const pubsub = self._configOpts.EXPERIMENTAL.pubsub

if (pubsub) {
self._pubsub = new FloodSub(self._libp2pNode)
}
series([
(cb) => {
self._bitswap.start()
Expand All @@ -32,7 +35,7 @@ module.exports = (self) => {
cb()
},
(cb) => {
if (self._configOpts.EXPERIMENTAL.pubsub) {
if (pubsub) {
self._pubsub.start(cb)
} else {
cb()
Expand Down
5 changes: 4 additions & 1 deletion test/interop/daemons/js.js
Expand Up @@ -49,7 +49,10 @@ class JsDaemon {
} else {
const repo = new IPFSRepo(this.path, {stores: require('fs-pull-blob-store')})
this.ipfs = new IPFS({
repo: repo
repo: repo,
EXPERIMENTAL: {
pubsub: true
}
})
}
this.node = null
Expand Down
5 changes: 2 additions & 3 deletions test/interop/index.js
Expand Up @@ -19,7 +19,6 @@ const sizes = [
1024 * 512,
1024 * 768,
1024 * 1023,
// starts failing with multiplex
1024 * 1024,
1024 * 1024 * 4,
1024 * 1024 * 8
Expand Down Expand Up @@ -78,7 +77,7 @@ describe('basic', () => {
], done)
})

it.skip('connect js <-> js', (done) => {
it('connect js <-> js', (done) => {
let jsId
let js2Id

Expand Down Expand Up @@ -133,7 +132,7 @@ describe('basic', () => {
})
})

it.skip(`js -> js: ${size}bytes`, (done) => {
it(`js -> js: ${size}bytes`, (done) => {
const data = crypto.randomBytes(size)
waterfall([
(cb) => js2Daemon.api.add(data, cb),
Expand Down

0 comments on commit de9c2dd

Please sign in to comment.