From 5b503510b5e994d95d79c90ebc98a6e29538b72c Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 27 Nov 2018 15:50:19 +0000 Subject: [PATCH 01/15] test: add tests for CID version agnostic add and cat License: MIT Signed-off-by: Alan Shaw --- test/cid-version-agnostic.js | 145 +++++++++++++++++++++++++++++++++++ test/node.js | 1 + 2 files changed, 146 insertions(+) create mode 100644 test/cid-version-agnostic.js diff --git a/test/cid-version-agnostic.js b/test/cid-version-agnostic.js new file mode 100644 index 00000000..d6459d60 --- /dev/null +++ b/test/cid-version-agnostic.js @@ -0,0 +1,145 @@ +/* eslint-env mocha */ +'use strict' + +const chai = require('chai') +const dirtyChai = require('dirty-chai') +const expect = chai.expect +chai.use(dirtyChai) +const hat = require('hat') +const CID = require('cids') +const { + spawnInitAndStartGoDaemon, + spawnInitAndStartJsDaemon, + stopDaemon +} = require('./utils/daemon') + +describe.only('CID version agnostic', () => { + const daemons = {} + + before(async function () { + this.timeout(10 * 1000) + + const [ js0, js1, go0, go1 ] = await Promise.all([ + spawnInitAndStartJsDaemon(), + spawnInitAndStartJsDaemon(), + spawnInitAndStartGoDaemon(), + spawnInitAndStartGoDaemon() + ]) + Object.assign(daemons, { js0, js1, go0, go1 }) + + // Get peer IDs + await Promise.all(Object.keys(daemons).map(async k => { + daemons[k].peerId = await daemons[k].api.id() + })) + + await Promise.all([ + js0.api.swarm.connect(js1.peerId.addresses[0]), + js1.api.swarm.connect(js0.peerId.addresses[0]), + go0.api.swarm.connect(go1.peerId.addresses[0]), + go1.api.swarm.connect(go0.peerId.addresses[0]), + js0.api.swarm.connect(go0.peerId.addresses[0]), + go0.api.swarm.connect(js0.peerId.addresses[0]) + ]) + }) + + after(function () { + this.timeout(10 * 1000) + return Promise.all(Object.values(daemons).map(stopDaemon)) + }) + + it('should add v0 and cat v1 (go0 -> go0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.go0.api.add(input, { cidVersion: 0 }) + const cidv1 = new CID(res[0].hash).toV1() + const output = await daemons.go0.api.cat(cidv1) + expect(output).to.deep.equal(input) + }) + + it('should add v0 and cat v1 (js0 -> js0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.js0.api.add(input, { cidVersion: 0 }) + const cidv1 = new CID(res[0].hash).toV1() + const output = await daemons.js0.api.cat(cidv1) + expect(output).to.deep.equal(input) + }) + + it('should add v0 and cat v1 (go0 -> go1)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.go0.api.add(input, { cidVersion: 0 }) + const cidv1 = new CID(res[0].hash).toV1() + const output = await daemons.go1.api.cat(cidv1) + expect(output).to.deep.equal(input) + }) + + it('should add v0 and cat v1 (js0 -> js1)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.js0.api.add(input, { cidVersion: 0 }) + const cidv1 = new CID(res[0].hash).toV1() + const output = await daemons.js1.api.cat(cidv1) + expect(output).to.deep.equal(input) + }) + + it('should add v0 and cat v1 (js0 -> go0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.js0.api.add(input, { cidVersion: 0 }) + const cidv1 = new CID(res[0].hash).toV1() + const output = await daemons.go0.api.cat(cidv1) + expect(output).to.deep.equal(input) + }) + + it('should add v0 and cat v1 (go0 -> js0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.go0.api.add(input, { cidVersion: 0 }) + const cidv1 = new CID(res[0].hash).toV1() + const output = await daemons.js0.api.cat(cidv1) + expect(output).to.deep.equal(input) + }) + + it('should add v1 and cat v0 (go0 -> go0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.go0.api.add(input, { cidVersion: 1, rawLeaves: false }) + const cidv0 = new CID(res[0].hash).toV0() + const output = await daemons.go0.api.cat(cidv0) + expect(output).to.deep.equal(input) + }) + + it('should add v1 and cat v0 (js0 -> js0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.js0.api.add(input, { cidVersion: 1, rawLeaves: false }) + const cidv0 = new CID(res[0].hash).toV0() + const output = await daemons.js0.api.cat(cidv0) + expect(output).to.deep.equal(input) + }) + + it('should add v1 and cat v0 (go0 -> go1)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.go0.api.add(input, { cidVersion: 1, rawLeaves: false }) + const cidv0 = new CID(res[0].hash).toV0() + const output = await daemons.go1.api.cat(cidv0) + expect(output).to.deep.equal(input) + }) + + it('should add v1 and cat v0 (js0 -> js1)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.js0.api.add(input, { cidVersion: 1, rawLeaves: false }) + const cidv0 = new CID(res[0].hash).toV0() + const output = await daemons.js1.api.cat(cidv0) + expect(output).to.deep.equal(input) + }) + + it('should add v1 and cat v0 (js0 -> go0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.js0.api.add(input, { cidVersion: 1, rawLeaves: false }) + const cidv0 = new CID(res[0].hash).toV0() + const output = await daemons.go0.api.cat(cidv0) + expect(output).to.deep.equal(input) + }) + + it('should add v1 and cat v0 (go0 -> js0)', async () => { + const input = Buffer.from(hat()) + const res = await daemons.go0.api.add(input, { cidVersion: 1, rawLeaves: false }) + const cidv0 = new CID(res[0].hash).toV0() + const output = await daemons.js0.api.cat(cidv0) + expect(output).to.deep.equal(input) + }) +}) diff --git a/test/node.js b/test/node.js index 2d4fbbe0..4edb14ea 100644 --- a/test/node.js +++ b/test/node.js @@ -1,6 +1,7 @@ /* eslint-env mocha */ 'use strict' +require('./cid-version-agnostic') require('./pubsub') require('./circuit') require('./repo') From dc7580b4386970f0b609e47d0820c9089665fe47 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 27 Nov 2018 15:52:58 +0000 Subject: [PATCH 02/15] chore: remove .only License: MIT Signed-off-by: Alan Shaw --- test/cid-version-agnostic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cid-version-agnostic.js b/test/cid-version-agnostic.js index d6459d60..98491e58 100644 --- a/test/cid-version-agnostic.js +++ b/test/cid-version-agnostic.js @@ -13,7 +13,7 @@ const { stopDaemon } = require('./utils/daemon') -describe.only('CID version agnostic', () => { +describe('CID version agnostic', () => { const daemons = {} before(async function () { From 9d3ec3e4d5cca2ccb5d981463514e743f830b1b6 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 30 Nov 2018 18:55:55 +0000 Subject: [PATCH 03/15] fix: tests using files --- test/files.js | 2 +- test/utils/circuit.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/files.js b/test/files.js index efee4c6b..146f0c8e 100644 --- a/test/files.js +++ b/test/files.js @@ -196,7 +196,7 @@ describe('files', function () { describe('has the same hashes for', () => { const testHashesAreEqual = (daemon, data, options) => { - return daemon.api.files.add(data, options) + return daemon.api.add(data, options) .then(files => files[0].hash) } diff --git a/test/utils/circuit.js b/test/utils/circuit.js index 36e1352c..6ec50832 100644 --- a/test/utils/circuit.js +++ b/test/utils/circuit.js @@ -98,8 +98,8 @@ exports.createGoNode = (addrs, callback) => { const data = crypto.randomBytes(128) exports.send = (nodeA, nodeB, callback) => { waterfall([ - (cb) => nodeA.files.add(data, cb), - (res, cb) => nodeB.files.cat(res[0].hash, cb), + (cb) => nodeA.add(data, cb), + (res, cb) => nodeB.cat(res[0].hash, cb), (buffer, cb) => { expect(buffer).to.deep.equal(data) cb() From d7817a38dca684c93c5d81f7c8c0b00ed1f9bebe Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 30 Nov 2018 18:55:55 +0000 Subject: [PATCH 04/15] fix: tests using files --- package.json | 2 +- test/files.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e6d73b29..1984bf3f 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,8 @@ "go-ipfs-dep": "~0.4.18", "hat": "0.0.3", "ipfs": "~0.33.0", - "ipfs-api": "^26.1.2", "ipfs-unixfs": "~0.1.16", + "ipfs-http-client": "^27.0.0", "ipfsd-ctl": "~0.40.0", "left-pad": "^1.3.0", "libp2p-websocket-star-rendezvous": "~0.2.4", diff --git a/test/files.js b/test/files.js index 146f0c8e..2abcd869 100644 --- a/test/files.js +++ b/test/files.js @@ -26,7 +26,7 @@ function checkNodeTypes (daemon, file) { expect(node.links.length).to.equal(2) return Promise.all( - node.links.map(link => daemon.api.object.get(link.toJSON().multihash).then(child => { + node.links.map(link => daemon.api.object.get(link.toJSON().cid).then(child => { const childMeta = UnixFs.unmarshal(child.data) expect(childMeta.type).to.equal('raw') From 7e05c540b2fb51eff94d60d278d90b8a4f2ea2d5 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 18 Dec 2018 17:02:49 +0000 Subject: [PATCH 05/15] fix: check for similar messages instead of identical --- test/files.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/test/files.js b/test/files.js index 2abcd869..0b0a12c1 100644 --- a/test/files.js +++ b/test/files.js @@ -67,11 +67,11 @@ const compare = (...ops) => { }) } -const compareErrors = (...ops) => { +const compareErrors = (expectedMessage, ...ops) => { expect(ops.length).to.be.above(1) return Promise.all( - // even if operations fail, their errors should be the same + // even if operations fail, their errors should be similar ops.map(op => op.then(() => { throw new ExpectedError('Expected operation to fail') }).catch(error => { @@ -88,9 +88,17 @@ const compareErrors = (...ops) => { .then(results => { expect(results.length).to.equal(ops.length) + // all implementations should have similar error messages + results.forEach(res => { + expect(res.message.toLowerCase()).to.contain(expectedMessage.toLowerCase()) + }) + const result = results.pop() - results.forEach(res => expect(res).to.deep.equal(result)) + // all implementations should have the same error code + results.forEach(res => { + expect(res.code).to.equal(result.code) + }) }) } @@ -138,6 +146,7 @@ describe('files', function () { } return compareErrors( + 'does not exist', readNonExistentFile(go), readNonExistentFile(js) ) @@ -149,6 +158,7 @@ describe('files', function () { } return compareErrors( + 'does not exist', readNonExistentFile(go), readNonExistentFile(js) ) @@ -171,6 +181,7 @@ describe('files', function () { const path = `/test-dir-${Math.random()}` return compareErrors( + 'already exists', go.api.files.mkdir(path).then(() => go.api.files.mkdir(path)), js.api.files.mkdir(path).then(() => js.api.files.mkdir(path)) ) @@ -189,6 +200,7 @@ describe('files', function () { const path = '/' return compareErrors( + 'already exists', go.api.files.mkdir(path).then(() => go.api.files.mkdir(path)), js.api.files.mkdir(path).then(() => js.api.files.mkdir(path)) ) From f526771893170083fed8a19682819bed0fdaeeb7 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 19 Dec 2018 13:11:03 +0000 Subject: [PATCH 06/15] chore: update ipfs to RC License: MIT Signed-off-by: Alan Shaw --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1984bf3f..4916e279 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "form-data": "^2.3.3", "go-ipfs-dep": "~0.4.18", "hat": "0.0.3", - "ipfs": "~0.33.0", + "ipfs": "~0.34.0", "ipfs-unixfs": "~0.1.16", "ipfs-http-client": "^27.0.0", "ipfsd-ctl": "~0.40.0", From 11c14dbf8ffe577a00d1620e7001d57c4ee39a60 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 15 Jan 2019 13:10:39 +0000 Subject: [PATCH 07/15] chore: update dependencies License: MIT Signed-off-by: Alan Shaw --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4916e279..aa71ac66 100644 --- a/package.json +++ b/package.json @@ -50,10 +50,15 @@ "form-data": "^2.3.3", "go-ipfs-dep": "~0.4.18", "hat": "0.0.3", +<<<<<<< HEAD "ipfs": "~0.34.0", +======= + "ipfs": "~0.34.0-rc.1", + "ipfs-http-client": "^29.0.0", +>>>>>>> chore: update dependencies "ipfs-unixfs": "~0.1.16", - "ipfs-http-client": "^27.0.0", "ipfsd-ctl": "~0.40.0", + "is-ci": "^1.2.1", "left-pad": "^1.3.0", "libp2p-websocket-star-rendezvous": "~0.2.4", "lodash": "^4.17.11", @@ -63,8 +68,7 @@ "random-fs": "^1.0.3", "rimraf": "^2.6.2", "stream-to-promise": "^2.2.0", - "transform-loader": "~0.2.4", - "is-ci": "^1.2.1" + "transform-loader": "~0.2.4" }, "contributors": [], "dependencies": { From af68a80d4ddff2c73b28782d95080c48d7ae1806 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 15 Jan 2019 16:21:06 +0000 Subject: [PATCH 08/15] fix: reinstate exchange directory tests License: MIT Signed-off-by: Alan Shaw --- test/exchange-files.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/exchange-files.js b/test/exchange-files.js index aaaab484..9b624d93 100644 --- a/test/exchange-files.js +++ b/test/exchange-files.js @@ -284,7 +284,7 @@ describe('exchange files', () => { }) })) - if (isWindows) { return } + if (isWindows()) { return } // TODO fix dir tests on Windows describe('get directory', () => depth.forEach((d) => dirs.forEach((num) => { @@ -297,10 +297,10 @@ describe('exchange files', () => { depth: d, number: num }).then(() => { - return goDaemon.api.util.addFromFs(dir, { recursive: true }) + return goDaemon.api.addFromFs(dir, { recursive: true }) }).then((res) => { const hash = res[res.length - 1].hash - return jsDaemon.api.files.get(hash) + return jsDaemon.api.get(hash) }).then((res) => { expect(res).to.exist() return rmDir(dir) @@ -316,10 +316,10 @@ describe('exchange files', () => { depth: d, number: num }).then(() => { - return jsDaemon.api.util.addFromFs(dir, { recursive: true }) + return jsDaemon.api.addFromFs(dir, { recursive: true }) }).then((res) => { const hash = res[res.length - 1].hash - return goDaemon.api.files.get(hash) + return goDaemon.api.get(hash) }).then((res) => { expect(res).to.exist() return rmDir(dir) @@ -335,10 +335,10 @@ describe('exchange files', () => { depth: d, number: num }).then(() => { - return jsDaemon2.api.util.addFromFs(dir, { recursive: true }) + return jsDaemon2.api.addFromFs(dir, { recursive: true }) }).then((res) => { const hash = res[res.length - 1].hash - return jsDaemon.api.files.get(hash) + return jsDaemon.api.get(hash) }).then((res) => { expect(res).to.exist() return rmDir(dir) @@ -354,10 +354,10 @@ describe('exchange files', () => { depth: d, number: num }).then(() => { - return goDaemon2.api.util.addFromFs(dir, { recursive: true }) + return goDaemon2.api.addFromFs(dir, { recursive: true }) }).then((res) => { const hash = res[res.length - 1].hash - return goDaemon.api.files.get(hash) + return goDaemon.api.get(hash) }).then((res) => { expect(res).to.exist() return rmDir(dir) From b467f5c6123182ccdc723b6cc9043f9504326878 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 16 Jan 2019 09:14:17 +0000 Subject: [PATCH 09/15] refactor: remove bootstrap nodes in tests License: MIT Signed-off-by: Alan Shaw --- test/exchange-files.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/exchange-files.js b/test/exchange-files.js index 9b624d93..e8014e6e 100644 --- a/test/exchange-files.js +++ b/test/exchange-files.js @@ -111,10 +111,10 @@ describe('exchange files', () => { this.timeout(timeout) parallel([ - (cb) => goDf.spawn({ initOptions: { bits: 1024 } }, cb), - (cb) => goDf.spawn({ initOptions: { bits: 1024 } }, cb), - (cb) => jsDf.spawn({ type: 'js', initOptions: { bits: 512 } }, cb), - (cb) => jsDf.spawn({ type: 'js', initOptions: { bits: 512 } }, cb) + (cb) => goDf.spawn({ initOptions: { bits: 1024 }, config: { Bootstrap: [] } }, cb), + (cb) => goDf.spawn({ initOptions: { bits: 1024 }, config: { Bootstrap: [] } }, cb), + (cb) => jsDf.spawn({ type: 'js', initOptions: { bits: 512 }, config: { Bootstrap: [] } }, cb), + (cb) => jsDf.spawn({ type: 'js', initOptions: { bits: 512 }, config: { Bootstrap: [] } }, cb) ], (err, n) => { expect(err).to.not.exist() nodes = n From 5fa7a7b8e493b357dd5482bd29ffa1dfb13d8535 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 17 Jan 2019 12:25:59 +0000 Subject: [PATCH 10/15] chore: update js-ipfs dep --- package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package.json b/package.json index aa71ac66..d4e00086 100644 --- a/package.json +++ b/package.json @@ -50,12 +50,8 @@ "form-data": "^2.3.3", "go-ipfs-dep": "~0.4.18", "hat": "0.0.3", -<<<<<<< HEAD "ipfs": "~0.34.0", -======= - "ipfs": "~0.34.0-rc.1", "ipfs-http-client": "^29.0.0", ->>>>>>> chore: update dependencies "ipfs-unixfs": "~0.1.16", "ipfsd-ctl": "~0.40.0", "is-ci": "^1.2.1", From 0ce4e441d372f2d43c205dc1bc343f57269d1703 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 25 Jan 2019 11:20:31 +0000 Subject: [PATCH 11/15] chore: update js-ipfs version License: MIT Signed-off-by: Alan Shaw --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d4e00086..05504cc4 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "form-data": "^2.3.3", "go-ipfs-dep": "~0.4.18", "hat": "0.0.3", - "ipfs": "~0.34.0", + "ipfs": "~0.34.4", "ipfs-http-client": "^29.0.0", "ipfs-unixfs": "~0.1.16", "ipfsd-ctl": "~0.40.0", From 5a43bad926f43584493f2536c6edf50ec01f73b7 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 25 Jan 2019 11:58:47 +0000 Subject: [PATCH 12/15] refactor: remove bootstrap nodes in tests License: MIT Signed-off-by: Alan Shaw --- test/utils/daemon.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/utils/daemon.js b/test/utils/daemon.js index f6d18e51..10982480 100644 --- a/test/utils/daemon.js +++ b/test/utils/daemon.js @@ -9,7 +9,8 @@ const spawnInitAndStartDaemon = (factory) => { factory.spawn({ initOptions: { bits: 1024 - } + }, + config: { Bootstrap: [] } }, (error, instance) => { if (error) { return reject(error) From 9c753adbbcd6ff3915a080c860a8678bdb0dff31 Mon Sep 17 00:00:00 2001 From: David Dias Date: Wed, 13 Feb 2019 08:47:17 +0100 Subject: [PATCH 13/15] chore: update deps --- package.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 05504cc4..e2bf268a 100644 --- a/package.json +++ b/package.json @@ -35,34 +35,34 @@ }, "homepage": "https://github.com/ipfs/interop#readme", "devDependencies": { - "aegir": "^17.0.1", - "async": "^2.6.1", - "bl": "^2.1.2", + "aegir": "^18.1.0", + "async": "^2.6.2", + "bl": "^2.2.0", "bs58": "^4.0.1", "chai": "^4.2.0", - "cids": "~0.5.5", + "cids": "~0.5.7", "cross-env": "^5.2.0", "detect-node": "^2.0.4", - "dir-compare": "^1.4.0", + "dir-compare": "^1.7.1", "dirty-chai": "^2.0.1", - "eslint-plugin-react": "^7.11.1", + "eslint-plugin-react": "^7.12.4", "expose-loader": "~0.7.5", "form-data": "^2.3.3", "go-ipfs-dep": "~0.4.18", "hat": "0.0.3", "ipfs": "~0.34.4", - "ipfs-http-client": "^29.0.0", + "ipfs-http-client": "^29.1.0", "ipfs-unixfs": "~0.1.16", - "ipfsd-ctl": "~0.40.0", - "is-ci": "^1.2.1", + "ipfsd-ctl": "~0.42.0", + "is-ci": "^2.0.0", "left-pad": "^1.3.0", - "libp2p-websocket-star-rendezvous": "~0.2.4", + "libp2p-websocket-star-rendezvous": "~0.3.0", "lodash": "^4.17.11", "mocha": "^5.2.0", "ncp": "^2.0.0", "pretty-bytes": "^5.1.0", "random-fs": "^1.0.3", - "rimraf": "^2.6.2", + "rimraf": "^2.6.3", "stream-to-promise": "^2.2.0", "transform-loader": "~0.2.4" }, From a16d84f490cd78e80830a23c4a8190573626d5b2 Mon Sep 17 00:00:00 2001 From: David Dias Date: Wed, 13 Feb 2019 08:53:27 +0100 Subject: [PATCH 14/15] chore: add missing deps --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e2bf268a..32c946fa 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "ipfs": "~0.34.4", "ipfs-http-client": "^29.1.0", "ipfs-unixfs": "~0.1.16", + "ipfs-repo": "~0.26.1", "ipfsd-ctl": "~0.42.0", "is-ci": "^2.0.0", "left-pad": "^1.3.0", @@ -68,6 +69,7 @@ }, "contributors": [], "dependencies": { - "is-os": "^1.0.1" + "is-os": "^1.0.1", + "promisify-es6": "^1.0.3" } } From a68a42b96a9831370d5a7a34fe3f17aa79a81952 Mon Sep 17 00:00:00 2001 From: David Dias Date: Wed, 13 Feb 2019 09:07:41 +0100 Subject: [PATCH 15/15] chore: update timeout on cid tests --- test/cid-version-agnostic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cid-version-agnostic.js b/test/cid-version-agnostic.js index 98491e58..5466ed54 100644 --- a/test/cid-version-agnostic.js +++ b/test/cid-version-agnostic.js @@ -17,7 +17,7 @@ describe('CID version agnostic', () => { const daemons = {} before(async function () { - this.timeout(10 * 1000) + this.timeout(30 * 1000) const [ js0, js1, go0, go1 ] = await Promise.all([ spawnInitAndStartJsDaemon(), @@ -43,7 +43,7 @@ describe('CID version agnostic', () => { }) after(function () { - this.timeout(10 * 1000) + this.timeout(30 * 1000) return Promise.all(Object.values(daemons).map(stopDaemon)) })