From d80d3a3f804ca818406bf3db751a70640b3fcd9d Mon Sep 17 00:00:00 2001 From: shunkin Date: Wed, 5 Sep 2018 20:48:42 +0900 Subject: [PATCH] fix: ipfs.io now should be resolved recursively (#362) --- js/src/miscellaneous/dns.js | 2 +- js/src/miscellaneous/resolve.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/miscellaneous/dns.js b/js/src/miscellaneous/dns.js index eba40512..993bc02a 100644 --- a/js/src/miscellaneous/dns.js +++ b/js/src/miscellaneous/dns.js @@ -34,7 +34,7 @@ module.exports = (createCommon, options) => { this.timeout(20 * 1000) this.retries(3) - ipfs.dns('ipfs.io', (err, path) => { + ipfs.dns('ipfs.io', {r: true}, (err, path) => { expect(err).to.not.exist() expect(path).to.exist() done() diff --git a/js/src/miscellaneous/resolve.js b/js/src/miscellaneous/resolve.js index be051690..c4b33a9a 100644 --- a/js/src/miscellaneous/resolve.js +++ b/js/src/miscellaneous/resolve.js @@ -92,7 +92,7 @@ module.exports = (createCommon, options) => { it('should resolve an IPNS DNS link', function (done) { this.timeout(20 * 1000) - ipfs.resolve('/ipns/ipfs.io', (err, path) => { + ipfs.resolve('/ipns/ipfs.io', {r: true}, (err, path) => { expect(err).to.not.exist() expect(isIpfs.ipfsPath(path)).to.be.true() done()