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

Commit 91eef62

Browse files
committed
fix: skip DNS tests temporarily
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent f88d99f commit 91eef62

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

js/src/miscellaneous/resolve.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

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

89
module.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

Comments
 (0)