Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
fix: go-ipfs 0.5 sync (#113)
Browse files Browse the repository at this point in the history
- fix remote node ipfs http client path
- fix rabin params go-ipfs has validation and returns errors
- fix use cid instead of hash in the pin tests
  • Loading branch information
hugomrdias authored May 21, 2020
1 parent 2c8aea6 commit df79b59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion test/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion test/pin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})
Expand Down

0 comments on commit df79b59

Please sign in to comment.