Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit e72b713

Browse files
committed
fix: bump swarm timeout for travis in js-ipfs-api
1 parent 762b770 commit e72b713

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@
2929
"async": "^2.5.0",
3030
"bl": "^1.2.1",
3131
"bs58": "^4.0.1",
32-
"chai": "^4.1.1",
32+
"chai": "^4.1.2",
3333
"cids": "^0.5.1",
3434
"concat-stream": "^1.6.0",
3535
"detect-node": "^2.0.3",
3636
"ipfs-block": "^0.6.0",
3737
"ipld-dag-cbor": "^0.11.1",
3838
"ipld-dag-pb": "^0.11.0",
39-
"multiaddr": "^2.3.0",
40-
"multihashes": "^0.4.8",
39+
"multiaddr": "^3.0.0",
40+
"multihashes": "^0.4.9",
4141
"multihashing-async": "^0.4.6",
42-
"peer-id": "^0.9.0",
42+
"peer-id": "^0.10.0",
4343
"pull-stream": "^3.6.0"
4444
},
4545
"devDependencies": {
46-
"aegir": "^12.0.0",
46+
"aegir": "^12.0.2",
4747
"dirty-chai": "^2.0.1"
4848
},
4949
"contributors": [

src/swarm.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ const series = require('async/series')
1111
const multiaddr = require('multiaddr')
1212

1313
module.exports = (common) => {
14-
describe('.swarm', () => {
14+
describe('.swarm', function () {
15+
this.timeout(80 * 1000)
16+
1517
let ipfsA
1618
let ipfsB
1719
let factoryInstance
1820

19-
before(function (done) {
20-
// CI takes longer to instantiate the daemon,
21-
// so we need to increase the timeout for the
22-
// before step
23-
this.timeout(50 * 1000)
24-
21+
before((done) => {
2522
common.setup((err, factory) => {
2623
expect(err).to.not.exist()
2724
factoryInstance = factory
@@ -50,7 +47,9 @@ module.exports = (common) => {
5047

5148
let ipfsBId
5249

53-
describe('callback API', () => {
50+
describe('callback API', function () {
51+
this.timeout(80 * 1000)
52+
5453
it('.connect', (done) => {
5554
ipfsB.id((err, id) => {
5655
expect(err).to.not.exist()
@@ -263,7 +262,9 @@ module.exports = (common) => {
263262
})
264263
})
265264

266-
describe('promise API', () => {
265+
describe('promise API', function () {
266+
this.timeout(80 * 1000)
267+
267268
it('.connect', () => {
268269
return ipfsB.id()
269270
.then((id) => {

0 commit comments

Comments
 (0)