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

Commit 5d3d3f4

Browse files
committed
fix: libp2p uninitialized error
1 parent ceafe3e commit 5d3d3f4

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

test/core/bitswap.spec.js

+18-14
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ function addNode (inProcNode, callback) {
7474
config: {
7575
Addresses: {
7676
Swarm: [`/ip4/127.0.0.1/tcp/0/ws`]
77-
}
77+
},
78+
Discovery: {
79+
MDNS: {
80+
Enabled: false
81+
}
82+
},
83+
Bootstrap: []
7884
}
7985
}, (err, ipfsd) => {
8086
expect(err).to.not.exist()
@@ -83,7 +89,7 @@ function addNode (inProcNode, callback) {
8389
})
8490
}
8591

86-
describe('bitswap', function () {
92+
describe.only('bitswap', function () {
8793
this.timeout(80 * 1000)
8894

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

94100
let config = {
95-
config: {
96-
Addresses: {
97-
Swarm: []
98-
},
99-
Discovery: {
100-
MDNS: {
101-
Enabled: false
102-
}
103-
},
104-
Bootstrap: []
105-
}
101+
Addresses: {
102+
Swarm: []
103+
},
104+
Discovery: {
105+
MDNS: {
106+
Enabled: false
107+
}
108+
},
109+
Bootstrap: []
106110
}
107111

108112
if (isNode) {
109-
config = Object.assign(config, {
113+
config = Object.assign({}, config, {
110114
config: {
111115
Addresses: {
112116
Swarm: ['/ip4/127.0.0.1/tcp/0']

0 commit comments

Comments
 (0)