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

Commit dcbbb9e

Browse files
author
Pedro Santos
committed
chore: increase wantlist timeout
1 parent 7873deb commit dcbbb9e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/bitswap/wantlist.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
const { getDescribe, getIt, expect } = require('../utils/mocha')
66
const { waitForWantlistKey } = require('./utils')
77

8+
const TIMEOUT = 120000
9+
810
module.exports = (createCommon, options) => {
911
const describe = getDescribe(options)
1012
const it = getIt(options)
@@ -30,17 +32,22 @@ module.exports = (createCommon, options) => {
3032
})
3133

3234
after(function () {
33-
this.timeout(30 * 1000)
35+
this.timeout(TIMEOUT)
3436

3537
return common.teardown()
3638
})
3739

38-
it('should get the wantlist', () => {
39-
return waitForWantlistKey(ipfsB, key)
40+
it('should get the wantlist', function () {
41+
this.timeout(TIMEOUT)
42+
return waitForWantlistKey(ipfsB, key, { timeout: TIMEOUT })
4043
})
4144

42-
it('should get the wantlist by peer ID for a diffreent node', () => {
43-
return waitForWantlistKey(ipfsA, key, { peerId: ipfsB.peerId.id })
45+
it('should get the wantlist by peer ID for a diffreent node', function () {
46+
this.timeout(TIMEOUT)
47+
return waitForWantlistKey(ipfsA, key, {
48+
peerId: ipfsB.peerId.id,
49+
timeout: TIMEOUT
50+
})
4451
})
4552

4653
it('should not get the wantlist when offline', async function () {

0 commit comments

Comments
 (0)