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

Commit 084c12e

Browse files
committed
fix: libp2p uninitialized error
1 parent ceafe3e commit 084c12e

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.aegir.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
served: true,
1212
included: false
1313
}],
14+
browserNoActivityTimeout: 100 * 1000,
1415
singleRun: true
1516
},
1617
hooks: {

test/core/bitswap.spec.js

+17-13
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()
@@ -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)