Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: skip DNS tests temporarily
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
  • Loading branch information
alanshaw committed Jul 20, 2018
1 parent de986a3 commit 50b1cc6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/src/miscellaneous/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

const isIpfs = require('is-ipfs')
const loadFixture = require('aegir/fixtures')
const hat = require('hat')
const { getDescribe, getIt, expect } = require('../utils/mocha')

module.exports = (createCommon, options) => {
Expand Down Expand Up @@ -67,7 +68,7 @@ module.exports = (createCommon, options) => {
})

it('should not resolve an IPFS path non-link', (done) => {
const content = { path: { to: { file: 'hello world' } } }
const content = { path: { to: { file: hat() } } }
const options = { format: 'dag-cbor', hashAlg: 'sha2-256' }

ipfs.dag.put(content, options, (err, cid) => {
Expand All @@ -83,7 +84,8 @@ module.exports = (createCommon, options) => {
})

// Test resolve turns /ipns/domain.com into /ipfs/QmHash
it('should resolve an IPNS DNS link', function (done) {
// TODO skipped until we can find a way to remove dependency on external service
it.skip('should resolve an IPNS DNS link', function (done) {
this.timeout(20 * 1000)

ipfs.resolve('/ipns/ipfs.io', (err, path) => {
Expand All @@ -94,7 +96,8 @@ module.exports = (createCommon, options) => {
})

// Test resolve turns /ipns/QmPeerHash into /ipns/domain.com into /ipfs/QmHash
it('should resolve IPNS link recursively', function (done) {
// TODO skipped until we can find a way to remove dependency on external service
it.skip('should resolve IPNS link recursively', function (done) {
this.timeout(2 * 60 * 1000)

ipfs.name.publish('/ipns/ipfs.io', { resolve: false }, (err, res) => {
Expand Down

0 comments on commit 50b1cc6

Please sign in to comment.