diff --git a/examples/electron-asar/package.json b/examples/electron-asar/package.json index ec06ebfc..7e44746f 100644 --- a/examples/electron-asar/package.json +++ b/examples/electron-asar/package.json @@ -3,8 +3,8 @@ "private": true, "main": "./app.js", "dependencies": { - "go-ipfs-dep": "github:ipfs/npm-go-ipfs-dep#add-path-function-to-detect-binary", - "ipfs": "^0.39.0-rc.2", + "go-ipfs-dep": "^0.5.0", + "ipfs": "^0.43.0", "ipfsd-ctl": "file:../.." }, "devDependencies": { diff --git a/package.json b/package.json index afc10dbd..c545653d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "devDependencies": { "aegir": "^21.9.0", "benchmark": "^2.1.4", - "go-ipfs-dep": "0.4.23-3", + "go-ipfs-dep": "^0.5.0", "husky": "^4.2.5", "ipfs": "^0.43.0", "ipfs-http-client": "^44.0.0", diff --git a/src/ipfsd-client.js b/src/ipfsd-client.js index 39149d97..7da0aa82 100644 --- a/src/ipfsd-client.js +++ b/src/ipfsd-client.js @@ -77,7 +77,6 @@ class Client { const opts = merge( { emptyRepo: false, - bits: this.opts.test ? 1024 : 2048, profiles: this.opts.test ? ['test'] : [] }, diff --git a/src/ipfsd-daemon.js b/src/ipfsd-daemon.js index e2b76bc0..8f474c63 100644 --- a/src/ipfsd-daemon.js +++ b/src/ipfsd-daemon.js @@ -88,7 +88,6 @@ class Daemon { const opts = merge( { emptyRepo: false, - bits: this.opts.test ? 1024 : 2048, profiles: this.opts.test ? ['test'] : [] }, typeof this.opts.ipfsOptions.init === 'boolean' ? {} : this.opts.ipfsOptions.init, diff --git a/src/ipfsd-in-proc.js b/src/ipfsd-in-proc.js index 7a139ff4..047e891b 100644 --- a/src/ipfsd-in-proc.js +++ b/src/ipfsd-in-proc.js @@ -82,7 +82,6 @@ class InProc { const opts = merge( { emptyRepo: false, - bits: this.opts.test ? 1024 : 2048, profiles: this.opts.test ? ['test'] : [] }, typeof this.opts.ipfsOptions.init === 'boolean' ? {} : this.opts.ipfsOptions.init, diff --git a/test/benchmark.js b/test/benchmark.js index 153e1b23..d5b54e36 100644 --- a/test/benchmark.js +++ b/test/benchmark.js @@ -7,22 +7,6 @@ const suite = new Benchmark.Suite() const { createNodeTests } = require('../src') suite - .add('ctl go 1024', { - defer: true, - fn: async (deferred) => { - const node = await createNodeTests({ - type: 'go', - ipfsOptions: { - init: { - bits: 1024 - } - } - }) - - await node.stop() - deferred.resolve() - } - }) .add('ctl go 2048', { defer: true, fn: async (deferred) => { @@ -39,38 +23,6 @@ suite deferred.resolve() } }) - .add('ctl js 512', { - defer: true, - fn: async (deferred) => { - const node = await createNodeTests({ - type: 'js', - ipfsOptions: { - init: { - bits: 512 - } - } - }) - - await node.stop() - deferred.resolve() - } - }) - .add('ctl js 1024', { - defer: true, - fn: async (deferred) => { - const node = await createNodeTests({ - type: 'js', - ipfsOptions: { - init: { - bits: 1024 - } - } - }) - - await node.stop() - deferred.resolve() - } - }) .add('ctl js 2048', { defer: true, fn: async (deferred) => { diff --git a/test/controller.spec.js b/test/controller.spec.js index 6d5c36ad..433263cc 100644 --- a/test/controller.spec.js +++ b/test/controller.spec.js @@ -110,14 +110,14 @@ describe('Controller API', function () { if (opts.type === 'js') { await expect(ctl.init({ emptyRepo: true, - bits: 1024, + bits: 2048, profile: ['test'], pass: 'QmfPjo1bKmpcdWxpQnGAKjeae9F9aCxTDiS61t9a3hmvRi' })).to.be.fulfilled() } else { await expect(ctl.init({ emptyRepo: true, - bits: 1024, + bits: 2048, profile: ['test'] })).to.be.fulfilled() }