@@ -47,7 +47,7 @@ describe('name', function () {
4747 let ipfsd
4848
4949 before ( function ( done ) {
50- this . timeout ( 40 * 1000 )
50+ this . timeout ( 50 * 1000 )
5151 df . spawn ( {
5252 exec : IPFS ,
5353 args : [ `--pass ${ hat ( ) } ` ] ,
@@ -69,10 +69,14 @@ describe('name', function () {
6969 after ( ( done ) => ipfsd . stop ( done ) )
7070
7171 it ( 'should publish and then resolve correctly with the default options' , function ( done ) {
72+ this . timeout ( 50 * 1000 )
73+
7274 publishAndResolve ( node , node , ipfsRef , { resolve : false } , nodeId , { } , done )
7375 } )
7476
7577 it ( 'should publish correctly with the lifetime option and resolve' , function ( done ) {
78+ this . timeout ( 50 * 1000 )
79+
7680 const publishOpts = {
7781 resolve : false ,
7882 lifetime : '2h'
@@ -82,6 +86,8 @@ describe('name', function () {
8286 } )
8387
8488 it ( 'should not get the entry correctly if its validity time expired' , function ( done ) {
89+ this . timeout ( 50 * 1000 )
90+
8591 node . name . publish ( ipfsRef , { resolve : false , lifetime : '1ms' } , ( err , res ) => {
8692 expect ( err ) . to . not . exist ( )
8793 expect ( res ) . to . exist ( )
@@ -96,7 +102,7 @@ describe('name', function () {
96102 } )
97103
98104 it ( 'should recursively resolve to an IPFS hash' , function ( done ) {
99- this . timeout ( 80 * 1000 )
105+ this . timeout ( 90 * 1000 )
100106 const keyName = hat ( )
101107
102108 node . key . gen ( keyName , { type : 'rsa' , size : 2048 } , function ( err , key ) {
@@ -115,7 +121,7 @@ describe('name', function () {
115121 } )
116122
117123 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 )
119125 const keyName = hat ( )
120126
121127 node . key . gen ( keyName , { type : 'rsa' , size : 2048 } , function ( err , key ) {
@@ -164,7 +170,7 @@ describe('name', function () {
164170 after ( ( done ) => ipfsd . stop ( done ) )
165171
166172 it ( 'should republish entries after 60 seconds' , function ( done ) {
167- this . timeout ( 100 * 1000 )
173+ this . timeout ( 120 * 1000 )
168174 sinon . spy ( node . _ipns . republisher , '_republishEntries' )
169175
170176 setTimeout ( function ( ) {
@@ -174,7 +180,7 @@ describe('name', function () {
174180 } )
175181
176182 it ( 'should error if run republish again' , function ( done ) {
177- this . timeout ( 100 * 1000 )
183+ this . timeout ( 120 * 1000 )
178184 sinon . spy ( node . _ipns . republisher , '_republishEntries' )
179185
180186 try {
@@ -203,7 +209,7 @@ describe('name', function () {
203209 }
204210
205211 before ( function ( done ) {
206- this . timeout ( 40 * 1000 )
212+ this . timeout ( 70 * 1000 )
207213
208214 parallel ( [
209215 ( cb ) => createNode ( cb ) ,
@@ -232,15 +238,19 @@ describe('name', function () {
232238 } )
233239 } )
234240
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+ } )
236246
237247 it ( 'should publish and then resolve correctly with the default options' , function ( done ) {
238- this . timeout ( 50 * 1000 )
248+ this . timeout ( 90 * 1000 )
239249 publishAndResolve ( nodeA , nodeB , ipfsRef , { resolve : false } , idA . id , { } , done )
240250 } )
241251
242252 it ( 'should recursively resolve to an IPFS hash' , function ( done ) {
243- this . timeout ( 80 * 1000 )
253+ this . timeout ( 180 * 1000 )
244254 const keyName = hat ( )
245255
246256 nodeA . key . gen ( keyName , { type : 'rsa' , size : 2048 } , function ( err , key ) {
0 commit comments