This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 1 file changed +12
-5
lines changed 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 5
5
const { getDescribe, getIt, expect } = require ( '../utils/mocha' )
6
6
const { waitForWantlistKey } = require ( './utils' )
7
7
8
+ const TIMEOUT = 120000
9
+
8
10
module . exports = ( createCommon , options ) => {
9
11
const describe = getDescribe ( options )
10
12
const it = getIt ( options )
@@ -30,17 +32,22 @@ module.exports = (createCommon, options) => {
30
32
} )
31
33
32
34
after ( function ( ) {
33
- this . timeout ( 30 * 1000 )
35
+ this . timeout ( TIMEOUT )
34
36
35
37
return common . teardown ( )
36
38
} )
37
39
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 } )
40
43
} )
41
44
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
+ } )
44
51
} )
45
52
46
53
it ( 'should not get the wantlist when offline' , async function ( ) {
You can’t perform that action at this time.
0 commit comments