From 5b2b07f0d1417645e43a73e4d3640d48bb7db874 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 16 Jul 2019 17:22:40 +0100 Subject: [PATCH 1/3] chore: bigger timeout for name.resolve tests with key gens (#501) * chore: bigger timeout for name.resolve tests with ken gens Observed to fail in CI repeatedly. License: MIT Signed-off-by: Alan Shaw * chore: add the file with the timeouts License: MIT Signed-off-by: Alan Shaw --- src/name/resolve.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/name/resolve.js b/src/name/resolve.js index 6002c249..58e46c6b 100644 --- a/src/name/resolve.js +++ b/src/name/resolve.js @@ -31,7 +31,9 @@ module.exports = (createCommon, options) => { after((done) => common.teardown(done)) - it('should resolve a record default options', async () => { + it('should resolve a record default options', async function () { + this.timeout(20 * 1000) + const [{ path }] = await ipfs.add(Buffer.from('should resolve a record default options')) const { id: keyId } = await ipfs.key.gen('key-name-default', { type: 'rsa', size: 2048 }) @@ -50,7 +52,9 @@ module.exports = (createCommon, options) => { .to.eq(`/ipfs/${path}`) }) - it('should resolve a record recursive === true', async () => { + it('should resolve a record recursive === true', async function () { + this.timeout(20 * 1000) + const [{ path }] = await ipfs.add(Buffer.from('should resolve a record recursive === true')) const { id: keyId } = await ipfs.key.gen('key-name', { type: 'rsa', size: 2048 }) @@ -62,7 +66,9 @@ module.exports = (createCommon, options) => { .to.eq(`/ipfs/${path}`) }) - it('should resolve a record default options with remainder', async () => { + it('should resolve a record default options with remainder', async function () { + this.timeout(20 * 1000) + const [{ path }] = await ipfs.add(Buffer.from('should resolve a record default options with remainder')) const { id: keyId } = await ipfs.key.gen('key-name-remainder-default', { type: 'rsa', size: 2048 }) @@ -81,7 +87,9 @@ module.exports = (createCommon, options) => { .to.eq(`/ipfs/${path}/remainder/file.txt`) }) - it('should resolve a record recursive === true with remainder', async () => { + it('should resolve a record recursive === true with remainder', async function () { + this.timeout(20 * 1000) + const [{ path }] = await ipfs.add(Buffer.from('should resolve a record recursive = true with remainder')) const { id: keyId } = await ipfs.key.gen('key-name-remainder', { type: 'rsa', size: 2048 }) @@ -117,13 +125,13 @@ module.exports = (createCommon, options) => { describe('.name.resolve dns', function () { const common = createCommon() let ipfs - this.retries(3) + this.retries(5) before(function (done) { common.setup((err, factory) => { expect(err).to.not.exist() - spawnNodeWithId(factory, (err, node) => { + factory.spawnNode((err, node) => { expect(err).to.not.exist() ipfs = node From 2bf4b8fd56812f1d9a91028e169e9a08ec0a2afb Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 16 Jul 2019 19:57:41 +0100 Subject: [PATCH 2/3] chore: update contributors --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bf451cdf..f2c997bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "interface-ipfs-core", - "version": "0.107.2", + "version": "0.107.3", "description": "A test suite and interface you can use to implement a IPFS core interface.", "leadMaintainer": "Alan Shaw ", "main": "src/index.js", From 18f9a74f0b80af033561a7267b7ce73cb3ed71bb Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 16 Jul 2019 19:57:41 +0100 Subject: [PATCH 3/3] chore: release version v0.107.3 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d05890f5..14d8e405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +## [0.107.3](https://github.com/ipfs/interface-ipfs-core/compare/v0.107.2...v0.107.3) (2019-07-16) + + + ## [0.107.2](https://github.com/ipfs/interface-ipfs-core/compare/v0.107.1...v0.107.2) (2019-07-16)