@@ -47,7 +47,7 @@ describe('name', function () {
47
47
let ipfsd
48
48
49
49
before ( function ( done ) {
50
- this . timeout ( 40 * 1000 )
50
+ this . timeout ( 50 * 1000 )
51
51
df . spawn ( {
52
52
exec : IPFS ,
53
53
args : [ `--pass ${ hat ( ) } ` ] ,
@@ -69,10 +69,14 @@ describe('name', function () {
69
69
after ( ( done ) => ipfsd . stop ( done ) )
70
70
71
71
it ( 'should publish and then resolve correctly with the default options' , function ( done ) {
72
+ this . timeout ( 50 * 1000 )
73
+
72
74
publishAndResolve ( node , node , ipfsRef , { resolve : false } , nodeId , { } , done )
73
75
} )
74
76
75
77
it ( 'should publish correctly with the lifetime option and resolve' , function ( done ) {
78
+ this . timeout ( 50 * 1000 )
79
+
76
80
const publishOpts = {
77
81
resolve : false ,
78
82
lifetime : '2h'
@@ -82,6 +86,8 @@ describe('name', function () {
82
86
} )
83
87
84
88
it ( 'should not get the entry correctly if its validity time expired' , function ( done ) {
89
+ this . timeout ( 50 * 1000 )
90
+
85
91
node . name . publish ( ipfsRef , { resolve : false , lifetime : '1ms' } , ( err , res ) => {
86
92
expect ( err ) . to . not . exist ( )
87
93
expect ( res ) . to . exist ( )
@@ -96,7 +102,7 @@ describe('name', function () {
96
102
} )
97
103
98
104
it ( 'should recursively resolve to an IPFS hash' , function ( done ) {
99
- this . timeout ( 80 * 1000 )
105
+ this . timeout ( 90 * 1000 )
100
106
const keyName = hat ( )
101
107
102
108
node . key . gen ( keyName , { type : 'rsa' , size : 2048 } , function ( err , key ) {
@@ -115,7 +121,7 @@ describe('name', function () {
115
121
} )
116
122
117
123
it ( 'should not recursively resolve to an IPFS hash if the option recursive is not provided' , function ( done ) {
118
- this . timeout ( 80 * 1000 )
124
+ this . timeout ( 90 * 1000 )
119
125
const keyName = hat ( )
120
126
121
127
node . key . gen ( keyName , { type : 'rsa' , size : 2048 } , function ( err , key ) {
@@ -164,7 +170,7 @@ describe('name', function () {
164
170
after ( ( done ) => ipfsd . stop ( done ) )
165
171
166
172
it ( 'should republish entries after 60 seconds' , function ( done ) {
167
- this . timeout ( 100 * 1000 )
173
+ this . timeout ( 120 * 1000 )
168
174
sinon . spy ( node . _ipns . republisher , '_republishEntries' )
169
175
170
176
setTimeout ( function ( ) {
@@ -174,7 +180,7 @@ describe('name', function () {
174
180
} )
175
181
176
182
it ( 'should error if run republish again' , function ( done ) {
177
- this . timeout ( 100 * 1000 )
183
+ this . timeout ( 120 * 1000 )
178
184
sinon . spy ( node . _ipns . republisher , '_republishEntries' )
179
185
180
186
try {
@@ -203,7 +209,7 @@ describe('name', function () {
203
209
}
204
210
205
211
before ( function ( done ) {
206
- this . timeout ( 40 * 1000 )
212
+ this . timeout ( 70 * 1000 )
207
213
208
214
parallel ( [
209
215
( cb ) => createNode ( cb ) ,
@@ -232,15 +238,19 @@ describe('name', function () {
232
238
} )
233
239
} )
234
240
235
- after ( ( done ) => parallel ( nodes . map ( ( node ) => ( cb ) => node . stop ( cb ) ) , done ) )
241
+ after ( function ( done ) {
242
+ this . timeout ( 80 * 1000 )
243
+
244
+ parallel ( nodes . map ( ( node ) => ( cb ) => node . stop ( cb ) ) , done )
245
+ } )
236
246
237
247
it ( 'should publish and then resolve correctly with the default options' , function ( done ) {
238
- this . timeout ( 50 * 1000 )
248
+ this . timeout ( 90 * 1000 )
239
249
publishAndResolve ( nodeA , nodeB , ipfsRef , { resolve : false } , idA . id , { } , done )
240
250
} )
241
251
242
252
it ( 'should recursively resolve to an IPFS hash' , function ( done ) {
243
- this . timeout ( 80 * 1000 )
253
+ this . timeout ( 180 * 1000 )
244
254
const keyName = hat ( )
245
255
246
256
nodeA . key . gen ( keyName , { type : 'rsa' , size : 2048 } , function ( err , key ) {
0 commit comments