33
44const isIpfs = require ( 'is-ipfs' )
55const loadFixture = require ( 'aegir/fixtures' )
6+ const hat = require ( 'hat' )
67const { getDescribe, getIt, expect } = require ( '../utils/mocha' )
78
89module . exports = ( createCommon , options ) => {
@@ -67,7 +68,7 @@ module.exports = (createCommon, options) => {
6768 } )
6869
6970 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 ( ) } } }
7172 const options = { format : 'dag-cbor' , hashAlg : 'sha2-256' }
7273
7374 ipfs . dag . put ( content , options , ( err , cid ) => {
@@ -83,7 +84,8 @@ module.exports = (createCommon, options) => {
8384 } )
8485
8586 // 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 ) {
8789 this . timeout ( 20 * 1000 )
8890
8991 ipfs . resolve ( '/ipns/ipfs.io' , ( err , path ) => {
@@ -94,7 +96,8 @@ module.exports = (createCommon, options) => {
9496 } )
9597
9698 // 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 ) {
98101 this . timeout ( 2 * 60 * 1000 )
99102
100103 ipfs . name . publish ( '/ipns/ipfs.io' , { resolve : false } , ( err , res ) => {
0 commit comments