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

Commit

Permalink
fix: libp2p uninitialized error
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed Jan 24, 2018
1 parent ceafe3e commit 5d3d3f4
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions test/core/bitswap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ function addNode (inProcNode, callback) {
config: {
Addresses: {
Swarm: [`/ip4/127.0.0.1/tcp/0/ws`]
}
},
Discovery: {
MDNS: {
Enabled: false
}
},
Bootstrap: []
}
}, (err, ipfsd) => {
expect(err).to.not.exist()
Expand All @@ -83,7 +89,7 @@ function addNode (inProcNode, callback) {
})
}

describe('bitswap', function () {
describe.only('bitswap', function () {
this.timeout(80 * 1000)

let inProcNode // Node spawned inside this process
Expand All @@ -92,21 +98,19 @@ describe('bitswap', function () {
this.timeout(60 * 1000)

let config = {
config: {
Addresses: {
Swarm: []
},
Discovery: {
MDNS: {
Enabled: false
}
},
Bootstrap: []
}
Addresses: {
Swarm: []
},
Discovery: {
MDNS: {
Enabled: false
}
},
Bootstrap: []
}

if (isNode) {
config = Object.assign(config, {
config = Object.assign({}, config, {
config: {
Addresses: {
Swarm: ['/ip4/127.0.0.1/tcp/0']
Expand Down

0 comments on commit 5d3d3f4

Please sign in to comment.