diff --git a/.aegir.js b/.aegir.js index 077a222d..0b97b44f 100644 --- a/.aegir.js +++ b/.aegir.js @@ -47,7 +47,7 @@ module.exports = { }, { type: 'go', test: true, - ipfsHttpModule: require('ipfs-http-client') + ipfsHttpModule: require(process.env.IPFS_JS_HTTP_MODULE || 'ipfs-http-client') }, { go: { ipfsBin: process.env.IPFS_GO_EXEC || require('go-ipfs-dep').path() diff --git a/test/files.js b/test/files.js index a350a677..a53c23a0 100644 --- a/test/files.js +++ b/test/files.js @@ -354,7 +354,7 @@ describe('files', function () { it('rabin chunker small chunks', () => { const options = { - chunker: 'rabin-16-16-16', + chunker: 'rabin-16-32-64', pin: false, preload: false } diff --git a/test/pin.js b/test/pin.js index 0f460cf3..9dfefc26 100644 --- a/test/pin.js +++ b/test/pin.js @@ -134,7 +134,7 @@ describe('pin', function () { expect(goPins).to.deep.include.members(jsPins) expect(jsPins).to.deep.include.members(goPins) - const dirPin = goPins.find(pin => pin.hash === jupiterDir.hash) + const dirPin = goPins.find(pin => pin.cid.equals(jupiterDir.cid)) expect(dirPin.type).to.eql('indirect') }) })