From 5d3d3f47d9a65563d1d105b8a8585cacf1d0279f Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 24 Jan 2018 03:26:26 -0600 Subject: [PATCH] fix: libp2p uninitialized error --- test/core/bitswap.spec.js | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/test/core/bitswap.spec.js b/test/core/bitswap.spec.js index 8996330088..0645259174 100644 --- a/test/core/bitswap.spec.js +++ b/test/core/bitswap.spec.js @@ -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() @@ -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 @@ -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']