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

Commit 2c90620

Browse files
author
Alan Shaw
authored
perf: use test profile (#942)
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 6552f0f commit 2c90620

18 files changed

+20
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"eslint-plugin-react": "^7.11.1",
8585
"go-ipfs-dep": "~0.4.18",
8686
"interface-ipfs-core": "~0.96.0",
87-
"ipfsd-ctl": "~0.40.0",
87+
"ipfsd-ctl": "github:ipfs/js-ipfsd-ctl",
8888
"nock": "^10.0.2",
8989
"pull-stream": "^3.6.9",
9090
"stream-equal": "^1.1.1"

test/commands.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('.commands', function () {
1717
let ipfs
1818

1919
before((done) => {
20-
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
20+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
2121
expect(err).to.not.exist()
2222
ipfsd = _ipfsd
2323
ipfs = ipfsClient(_ipfsd.apiAddr)

test/constructor.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('ipfs-http-client constructor tests', () => {
8484
before(function (done) {
8585
this.timeout(60 * 1000) // slow CI
8686

87-
f.spawn({ initOptions: { bits: 1024 } }, (err, node) => {
87+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, node) => {
8888
expect(err).to.not.exist()
8989
ipfsd = node
9090
apiAddr = node.apiAddr.toString()

test/custom-headers.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('custom headers', function () {
1818
let ipfsd
1919
// initialize ipfs with custom headers
2020
before(done => {
21-
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
21+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
2222
expect(err).to.not.exist()
2323
ipfsd = _ipfsd
2424
ipfs = ipfsClient({

test/dag.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('.dag', function () {
2121
this.timeout(20 * 1000)
2222
before(function (done) {
2323
series([
24-
(cb) => f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
24+
(cb) => f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
2525
expect(err).to.not.exist()
2626
ipfsd = _ipfsd
2727
ipfs = ipfsClient(_ipfsd.apiAddr)

test/diag.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('.diag', function () {
2020
let ipfs
2121

2222
before((done) => {
23-
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
23+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
2424
expect(err).to.not.exist()
2525
ipfsd = _ipfsd
2626
ipfs = ipfsClient(_ipfsd.apiAddr)

test/files-mfs.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('.files (the MFS API part)', function () {
3838
const expectedMultihash = 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP'
3939

4040
before((done) => {
41-
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
41+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
4242
expect(err).to.not.exist()
4343
ipfsd = _ipfsd
4444
ipfs = ipfsClient(_ipfsd.apiAddr)

test/get.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('.get (specific go-ipfs features)', function () {
3131

3232
before(function (done) {
3333
series([
34-
(cb) => f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
34+
(cb) => f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
3535
expect(err).to.not.exist()
3636
ipfsd = _ipfsd
3737
ipfs = ipfsClient(_ipfsd.apiAddr)

test/key.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('.key', function () {
1717
let ipfs
1818

1919
before((done) => {
20-
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
20+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
2121
expect(err).to.not.exist()
2222
ipfsd = _ipfsd
2323
ipfs = ipfsClient(_ipfsd.apiAddr)

test/log.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('.log', function () {
1717
let ipfs
1818

1919
before((done) => {
20-
f.spawn({ initOptions: { bits: 1024 } }, (err, _ipfsd) => {
20+
f.spawn({ initOptions: { bits: 1024, profile: 'test' } }, (err, _ipfsd) => {
2121
expect(err).to.not.exist()
2222
ipfsd = _ipfsd
2323
ipfs = ipfsClient(_ipfsd.apiAddr)

0 commit comments

Comments
 (0)