Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

perf: use test profile #942

Merged
merged 3 commits into from
Feb 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"eslint-plugin-react": "^7.11.1",
"go-ipfs-dep": "~0.4.18",
"interface-ipfs-core": "~0.96.0",
"ipfsd-ctl": "~0.40.0",
"ipfsd-ctl": "github:ipfs/js-ipfsd-ctl",
"nock": "^10.0.2",
"pull-stream": "^3.6.9",
"stream-equal": "^1.1.1"
Expand Down
2 changes: 1 addition & 1 deletion test/commands.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('.commands', function () {
let ipfs

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/constructor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('ipfs-http-client constructor tests', () => {
before(function (done) {
this.timeout(60 * 1000) // slow CI

f.spawn({ initOptions: { bits: 1024 } }, (err, node) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, node) => {
expect(err).to.not.exist()
ipfsd = node
apiAddr = node.apiAddr.toString()
Expand Down
2 changes: 1 addition & 1 deletion test/custom-headers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('custom headers', function () {
let ipfsd
// initialize ipfs with custom headers
before(done => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient({
Expand Down
2 changes: 1 addition & 1 deletion test/dag.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('.dag', function () {
this.timeout(20 * 1000)
before(function (done) {
series([
(cb) => f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
(cb) => f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/diag.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('.diag', function () {
let ipfs

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/files-mfs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('.files (the MFS API part)', function () {
const expectedMultihash = 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP'

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/get.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('.get (specific go-ipfs features)', function () {

before(function (done) {
series([
(cb) => f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
(cb) => f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/key.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('.key', function () {
let ipfs

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/log.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('.log', function () {
let ipfs

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
4 changes: 2 additions & 2 deletions test/name.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ describe('.name', () => {

series([
(cb) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
cb()
})
},
(cb) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, node) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, node) => {
expect(err).to.not.exist()
other = node.api
otherd = node
Expand Down
4 changes: 2 additions & 2 deletions test/ping.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ describe('.ping', function () {

series([
(cb) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
cb()
})
},
(cb) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, node) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, node) => {
expect(err).to.not.exist()
other = node.api
otherd = node
Expand Down
2 changes: 1 addition & 1 deletion test/pubsub-in-browser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('.pubsub is not supported in the browser, yet!', function () {
let ipfsd

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/refs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('.refs', function () {
}

waterfall([
(cb) => f.spawn({ initOptions: { bits: 1024 } }, cb),
(cb) => f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, cb),
(_ipfsd, cb) => {
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/repo.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('.repo', function () {
let ipfsd

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/stats.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('stats', function () {
let ipfsd

before((done) => {
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('.util', () => {
before(function (done) {
this.timeout(20 * 1000) // slow CI

f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
expect(err).to.not.exist()
ipfsd = _ipfsd
ipfs = ipfsClient(_ipfsd.apiAddr)
Expand Down
2 changes: 1 addition & 1 deletion test/utils/interface-common-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function createFactory (options) {
options = options || {}

options.factoryOptions = options.factoryOptions || {}
options.spawnOptions = options.spawnOptions || { initOptions: { bits: 1024 } }
options.spawnOptions = options.spawnOptions || { initOptions: { bits: 1024, profile: 'test' } }

const ipfsFactory = IPFSFactory.create(options.factoryOptions)

Expand Down