3
3
4
4
const isIpfs = require ( 'is-ipfs' )
5
5
const loadFixture = require ( 'aegir/fixtures' )
6
+ const hat = require ( 'hat' )
6
7
const { getDescribe, getIt, expect } = require ( '../utils/mocha' )
7
8
8
9
module . exports = ( createCommon , options ) => {
@@ -67,7 +68,7 @@ module.exports = (createCommon, options) => {
67
68
} )
68
69
69
70
it ( 'should not resolve an IPFS path non-link' , ( done ) => {
70
- const content = { path : { to : { file : 'hello world' } } }
71
+ const content = { path : { to : { file : hat ( ) } } }
71
72
const options = { format : 'dag-cbor' , hashAlg : 'sha2-256' }
72
73
73
74
ipfs . dag . put ( content , options , ( err , cid ) => {
@@ -83,7 +84,8 @@ module.exports = (createCommon, options) => {
83
84
} )
84
85
85
86
// Test resolve turns /ipns/domain.com into /ipfs/QmHash
86
- it ( 'should resolve an IPNS DNS link' , function ( done ) {
87
+ // TODO skipped until we can find a way to remove dependency on external service
88
+ it . skip ( 'should resolve an IPNS DNS link' , function ( done ) {
87
89
this . timeout ( 20 * 1000 )
88
90
89
91
ipfs . resolve ( '/ipns/ipfs.io' , ( err , path ) => {
@@ -94,7 +96,8 @@ module.exports = (createCommon, options) => {
94
96
} )
95
97
96
98
// Test resolve turns /ipns/QmPeerHash into /ipns/domain.com into /ipfs/QmHash
97
- it ( 'should resolve IPNS link recursively' , function ( done ) {
99
+ // TODO skipped until we can find a way to remove dependency on external service
100
+ it . skip ( 'should resolve IPNS link recursively' , function ( done ) {
98
101
this . timeout ( 2 * 60 * 1000 )
99
102
100
103
ipfs . name . publish ( '/ipns/ipfs.io' , { resolve : false } , ( err , res ) => {
0 commit comments