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

Commit 47c2329

Browse files
committed
test: increase timeouts (as default changed)
1 parent 99e1da0 commit 47c2329

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

src/config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const expect = chai.expect
99
chai.use(dirtyChai)
1010

1111
module.exports = (common) => {
12-
describe('.config', () => {
12+
describe('.config', function () {
13+
this.timeout(20 * 1000)
1314
let ipfs
1415

1516
before((done) => {

src/dht.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ function spawnWithId (factory, callback) {
2424
}
2525

2626
module.exports = (common) => {
27-
describe('.dht', () => {
27+
describe('.dht', function () {
28+
this.timeout(20 * 1000)
29+
2830
let nodeA
2931
let nodeB
3032
let nodeC

src/object.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ const bs58 = require('bs58')
1313
const series = require('async/series')
1414

1515
module.exports = (common) => {
16-
describe('.object', () => {
17-
let ipfs
16+
describe('.object', function () {
17+
this.timeout(20 * 1000)
1818

19-
before(function (done) {
20-
// CI is slow
21-
this.timeout(20 * 1000)
19+
let ipfs
2220

21+
before((done) => {
2322
common.setup((err, factory) => {
2423
expect(err).to.not.exist()
2524
factory.spawnNode((err, node) => {

src/pin.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@ const loadFixture = require('aegir/fixtures')
1212
const testfile = loadFixture(__dirname, '../test/fixtures/testfile.txt', 'interface-ipfs-core')
1313

1414
module.exports = (common) => {
15-
describe('.pin', () => {
16-
let ipfs
15+
describe('.pin', function () {
16+
this.timeout(50 * 1000)
1717

18-
before(function (done) {
19-
// CI takes longer to instantiate the daemon,
20-
// so we need to increase the timeout for the
21-
// before step
22-
this.timeout(20 * 1000)
18+
let ipfs
2319

20+
before((done) => {
2421
common.setup((err, factory) => {
2522
expect(err).to.not.exist()
2623
factory.spawnNode((err, node) => {

src/pubsub.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ function makeCheck (n, done) {
5858
}
5959

6060
module.exports = (common) => {
61-
describe('.pubsub', () => {
61+
describe('.pubsub', function () {
62+
this.timeout(20 * 1000)
63+
6264
const topic = 'pubsub-tests'
6365

6466
describe('callback API', () => {

0 commit comments

Comments
 (0)