diff --git a/package.json b/package.json index 03134f751..87c4111ff 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "eslint-plugin-react": "^7.9.1", "go-ipfs-dep": "~0.4.15", "gulp": "^3.9.1", - "interface-ipfs-core": "~0.69.0", + "interface-ipfs-core": "~0.69.1", "ipfsd-ctl": "~0.37.3", "pull-stream": "^3.6.8", "socket.io": "^2.1.1", diff --git a/test/name.spec.js b/test/name.spec.js index 93b371af9..b8a76d136 100644 --- a/test/name.spec.js +++ b/test/name.spec.js @@ -24,7 +24,7 @@ describe('.name', () => { let testFileCid before(function (done) { - this.timeout(20 * 1000) + this.timeout(30 * 1000) series([ (cb) => { @@ -44,18 +44,22 @@ describe('.name', () => { }) }, (cb) => { - ipfsd.api.id((err, id) => { - expect(err).to.not.exist() - const ma = id.addresses[0] - other.swarm.connect(ma, cb) - }) - }, - (cb) => { - ipfs.files.add(testfile, (err, res) => { - expect(err).to.not.exist() - testFileCid = res[0].hash - cb() - }) + parallel([ + (cb) => { + ipfs.id((err, id) => { + expect(err).to.not.exist() + const ma = id.addresses[0] + other.swarm.connect(ma, cb) + }) + }, + (cb) => { + ipfs.files.add(testfile, (err, res) => { + expect(err).to.not.exist() + testFileCid = res[0].hash + cb() + }) + } + ], cb) } ], done) }) diff --git a/test/ping.spec.js b/test/ping.spec.js index 097e40045..06848ee78 100644 --- a/test/ping.spec.js +++ b/test/ping.spec.js @@ -30,7 +30,7 @@ describe('.ping', function () { let otherId before(function (done) { - this.timeout(20 * 1000) // slow CI + this.timeout(30 * 1000) // slow CI series([ (cb) => { @@ -50,18 +50,22 @@ describe('.ping', function () { }) }, (cb) => { - ipfsd.api.id((err, id) => { - expect(err).to.not.exist() - const ma = id.addresses[0] - other.swarm.connect(ma, cb) - }) - }, - (cb) => { - other.id((err, id) => { - expect(err).to.not.exist() - otherId = id.id - cb() - }) + parallel([ + (cb) => { + ipfs.id((err, id) => { + expect(err).to.not.exist() + const ma = id.addresses[0] + other.swarm.connect(ma, cb) + }) + }, + (cb) => { + other.id((err, id) => { + expect(err).to.not.exist() + otherId = id.id + cb() + }) + } + ], cb) } ], done) })