@@ -41,7 +41,7 @@ module.exports = (createCommon, options) => {
41
41
after ( ( done ) => common . teardown ( done ) )
42
42
43
43
it ( 'should resolve a record with the default params after a publish' , function ( done ) {
44
- this . timeout ( 50 * 1000 )
44
+ this . timeout ( 120 * 1000 )
45
45
46
46
const value = fixture . cid
47
47
@@ -52,22 +52,20 @@ module.exports = (createCommon, options) => {
52
52
ipfs . name . resolve ( nodeId , ( err , res ) => {
53
53
expect ( err ) . to . not . exist ( )
54
54
expect ( res ) . to . exist ( )
55
- expect ( res . path ) . to . equal ( `/ipfs/${ value } ` )
55
+ expect ( res . path || res ) . to . equal ( `/ipfs/${ value } ` ) // TODO
56
56
57
57
done ( )
58
58
} )
59
59
} )
60
60
} )
61
61
62
62
it ( 'should not get the entry if its validity time expired' , function ( done ) {
63
- this . timeout ( 50 * 1000 )
63
+ this . timeout ( 140 * 1000 )
64
64
65
65
const value = fixture . cid
66
66
const publishOptions = {
67
- resolve : true ,
68
- lifetime : '1ms' ,
69
- ttl : '10s' ,
70
- key : 'self'
67
+ resolve : false ,
68
+ lifetime : '10ms'
71
69
}
72
70
73
71
ipfs . name . publish ( value , publishOptions , ( err , res ) => {
@@ -83,12 +81,12 @@ module.exports = (createCommon, options) => {
83
81
84
82
done ( )
85
83
} )
86
- } , 1 )
84
+ } , 10 )
87
85
} )
88
86
} )
89
87
90
88
it ( 'should recursively resolve to an IPFS hash' , function ( done ) {
91
- this . timeout ( 100 * 1000 )
89
+ this . timeout ( 150 * 1000 )
92
90
93
91
const value = fixture . cid
94
92
const publishOptions = {
@@ -125,7 +123,7 @@ module.exports = (createCommon, options) => {
125
123
ipfs . name . resolve ( keyId , resolveOptions , ( err , res ) => {
126
124
expect ( err ) . to . not . exist ( )
127
125
expect ( res ) . to . exist ( )
128
- expect ( res . path ) . to . equal ( `/ipfs/${ value } ` )
126
+ expect ( res . path || res ) . to . equal ( `/ipfs/${ value } ` ) // TODO
129
127
130
128
done ( )
131
129
} )
0 commit comments