Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: remove CLI preload arg not recognised by ipfsd-ctl
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw committed Jun 27, 2019
1 parent 4cb7e73 commit 57eab30
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 21 deletions.
1 change: 0 additions & 1 deletion test/core/bitswap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ function addNode (fDaemon, inProcNode, callback) {
},
Bootstrap: []
},
args: ['--enable-preload=false'],
preload: { enabled: false }
}, (err, ipfsd) => {
expect(err).to.not.exist()
Expand Down
2 changes: 1 addition & 1 deletion test/core/files-sharding.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('files directory (sharding tests)', () => {
df.spawn({
exec: IPFS,
initOptions: { bits: 512 },
args: ['--enable-sharding-experiment', '--enable-preload=false'],
args: ['--enable-sharding-experiment'],
config: {
Addresses: {
Swarm: []
Expand Down
2 changes: 1 addition & 1 deletion test/core/ping.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
}

function spawnNode ({ dht = false, type = 'js' }, cb) {
const args = dht ? ['--enable-preload=false'] : ['--offline', '--enable-preload=false']
const args = dht ? [] : ['--offline']
const factory = type === 'js' ? df : dfProc
factory.spawn({
args,
Expand Down
2 changes: 1 addition & 1 deletion test/http-api/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('block endpoint', () => {
df.spawn({
initOptions: { bits: 512 },
config: { Bootstrap: [] },
args: ['--enable-preload=false']
args: []
}, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ describe('bootstrap endpoint', () => {
Enabled: false
}
}
},
args: ['--enable-preload=false']
}
}, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ skipOnWindows('config endpoint', () => {
initOptions: { bits: 512 },
config: { Bootstrap: [] },
disposable: false,
start: true,
args: ['--enable-preload=false']
start: true
}, cb),
(_ipfsd, cb) => {
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ describe('dns endpoint', () => {
this.timeout(20 * 1000)
df.spawn({
initOptions: { bits: 512 },
config: { Bootstrap: [] },
args: ['--enable-preload=false']
config: { Bootstrap: [] }
}, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ describe('.files', () => {
this.timeout(20 * 1000)
df.spawn({
initOptions: { bits: 512 },
config: { Bootstrap: [] },
args: ['--enable-preload=false']
config: { Bootstrap: [] }
}, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ skipOnWindows('id endpoint', () => {
initOptions: { bits: 512 },
config: { Bootstrap: [] },
disposable: false,
start: true,
args: ['--enable-preload=false']
start: true
}, cb),
(_ipfsd, cb) => {
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ describe('object endpoint', () => {
Enabled: false
}
}
},
args: ['--enable-preload=false']
}
}, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
Expand Down
3 changes: 1 addition & 2 deletions test/http-api/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ describe('version endpoint', () => {
Enabled: false
}
}
},
args: ['--enable-preload=false']
}
}, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
Expand Down
1 change: 0 additions & 1 deletion test/utils/interface-common-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function createFactory (options) {
}
}
},
args: ['--enable-preload=false'],
preload: { enabled: false }
}

Expand Down
3 changes: 1 addition & 2 deletions test/utils/on-and-off.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ function on (tests) {
type: 'js',
exec: path.resolve(`${__dirname}/../../src/cli/bin.js`),
initOptions: { bits: 512 },
config: { Bootstrap: [] },
args: ['--enable-preload=false']
config: { Bootstrap: [] }
}, (err, node) => {
expect(err).to.not.exist()
ipfsd = node
Expand Down

0 comments on commit 57eab30

Please sign in to comment.