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

chore: increase ping and name test timeouts #795

Merged
merged 2 commits into from
Jun 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"eslint-plugin-react": "^7.9.1",
"go-ipfs-dep": "~0.4.15",
"gulp": "^3.9.1",
"interface-ipfs-core": "~0.69.0",
"interface-ipfs-core": "~0.69.1",
"ipfsd-ctl": "~0.37.3",
"pull-stream": "^3.6.8",
"socket.io": "^2.1.1",
Expand Down
30 changes: 17 additions & 13 deletions test/name.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('.name', () => {
let testFileCid

before(function (done) {
this.timeout(20 * 1000)
this.timeout(30 * 1000)

series([
(cb) => {
Expand All @@ -44,18 +44,22 @@ describe('.name', () => {
})
},
(cb) => {
ipfsd.api.id((err, id) => {
expect(err).to.not.exist()
const ma = id.addresses[0]
other.swarm.connect(ma, cb)
})
},
(cb) => {
ipfs.files.add(testfile, (err, res) => {
expect(err).to.not.exist()
testFileCid = res[0].hash
cb()
})
parallel([
(cb) => {
ipfs.id((err, id) => {
expect(err).to.not.exist()
const ma = id.addresses[0]
other.swarm.connect(ma, cb)
})
},
(cb) => {
ipfs.files.add(testfile, (err, res) => {
expect(err).to.not.exist()
testFileCid = res[0].hash
cb()
})
}
], cb)
}
], done)
})
Expand Down
30 changes: 17 additions & 13 deletions test/ping.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('.ping', function () {
let otherId

before(function (done) {
this.timeout(20 * 1000) // slow CI
this.timeout(30 * 1000) // slow CI

series([
(cb) => {
Expand All @@ -50,18 +50,22 @@ describe('.ping', function () {
})
},
(cb) => {
ipfsd.api.id((err, id) => {
expect(err).to.not.exist()
const ma = id.addresses[0]
other.swarm.connect(ma, cb)
})
},
(cb) => {
other.id((err, id) => {
expect(err).to.not.exist()
otherId = id.id
cb()
})
parallel([
(cb) => {
ipfs.id((err, id) => {
expect(err).to.not.exist()
const ma = id.addresses[0]
other.swarm.connect(ma, cb)
})
},
(cb) => {
other.id((err, id) => {
expect(err).to.not.exist()
otherId = id.id
cb()
})
}
], cb)
}
], done)
})
Expand Down