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

Commit

Permalink
fix: bump swarm timeout for travis in js-ipfs-api
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Sep 4, 2017
1 parent 762b770 commit e72b713
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@
"async": "^2.5.0",
"bl": "^1.2.1",
"bs58": "^4.0.1",
"chai": "^4.1.1",
"chai": "^4.1.2",
"cids": "^0.5.1",
"concat-stream": "^1.6.0",
"detect-node": "^2.0.3",
"ipfs-block": "^0.6.0",
"ipld-dag-cbor": "^0.11.1",
"ipld-dag-pb": "^0.11.0",
"multiaddr": "^2.3.0",
"multihashes": "^0.4.8",
"multiaddr": "^3.0.0",
"multihashes": "^0.4.9",
"multihashing-async": "^0.4.6",
"peer-id": "^0.9.0",
"peer-id": "^0.10.0",
"pull-stream": "^3.6.0"
},
"devDependencies": {
"aegir": "^12.0.0",
"aegir": "^12.0.2",
"dirty-chai": "^2.0.1"
},
"contributors": [
Expand Down
19 changes: 10 additions & 9 deletions src/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ const series = require('async/series')
const multiaddr = require('multiaddr')

module.exports = (common) => {
describe('.swarm', () => {
describe('.swarm', function () {
this.timeout(80 * 1000)

let ipfsA
let ipfsB
let factoryInstance

before(function (done) {
// CI takes longer to instantiate the daemon,
// so we need to increase the timeout for the
// before step
this.timeout(50 * 1000)

before((done) => {
common.setup((err, factory) => {
expect(err).to.not.exist()
factoryInstance = factory
Expand Down Expand Up @@ -50,7 +47,9 @@ module.exports = (common) => {

let ipfsBId

describe('callback API', () => {
describe('callback API', function () {
this.timeout(80 * 1000)

it('.connect', (done) => {
ipfsB.id((err, id) => {
expect(err).to.not.exist()
Expand Down Expand Up @@ -263,7 +262,9 @@ module.exports = (common) => {
})
})

describe('promise API', () => {
describe('promise API', function () {
this.timeout(80 * 1000)

it('.connect', () => {
return ipfsB.id()
.then((id) => {
Expand Down

0 comments on commit e72b713

Please sign in to comment.