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

Commit 5b2b07f

Browse files
author
Alan Shaw
authored
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 <[email protected]> * chore: add the file with the timeouts License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 3e7984b commit 5b2b07f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/name/resolve.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ module.exports = (createCommon, options) => {
3131

3232
after((done) => common.teardown(done))
3333

34-
it('should resolve a record default options', async () => {
34+
it('should resolve a record default options', async function () {
35+
this.timeout(20 * 1000)
36+
3537
const [{ path }] = await ipfs.add(Buffer.from('should resolve a record default options'))
3638

3739
const { id: keyId } = await ipfs.key.gen('key-name-default', { type: 'rsa', size: 2048 })
@@ -50,7 +52,9 @@ module.exports = (createCommon, options) => {
5052
.to.eq(`/ipfs/${path}`)
5153
})
5254

53-
it('should resolve a record recursive === true', async () => {
55+
it('should resolve a record recursive === true', async function () {
56+
this.timeout(20 * 1000)
57+
5458
const [{ path }] = await ipfs.add(Buffer.from('should resolve a record recursive === true'))
5559

5660
const { id: keyId } = await ipfs.key.gen('key-name', { type: 'rsa', size: 2048 })
@@ -62,7 +66,9 @@ module.exports = (createCommon, options) => {
6266
.to.eq(`/ipfs/${path}`)
6367
})
6468

65-
it('should resolve a record default options with remainder', async () => {
69+
it('should resolve a record default options with remainder', async function () {
70+
this.timeout(20 * 1000)
71+
6672
const [{ path }] = await ipfs.add(Buffer.from('should resolve a record default options with remainder'))
6773

6874
const { id: keyId } = await ipfs.key.gen('key-name-remainder-default', { type: 'rsa', size: 2048 })
@@ -81,7 +87,9 @@ module.exports = (createCommon, options) => {
8187
.to.eq(`/ipfs/${path}/remainder/file.txt`)
8288
})
8389

84-
it('should resolve a record recursive === true with remainder', async () => {
90+
it('should resolve a record recursive === true with remainder', async function () {
91+
this.timeout(20 * 1000)
92+
8593
const [{ path }] = await ipfs.add(Buffer.from('should resolve a record recursive = true with remainder'))
8694

8795
const { id: keyId } = await ipfs.key.gen('key-name-remainder', { type: 'rsa', size: 2048 })
@@ -117,13 +125,13 @@ module.exports = (createCommon, options) => {
117125
describe('.name.resolve dns', function () {
118126
const common = createCommon()
119127
let ipfs
120-
this.retries(3)
128+
this.retries(5)
121129

122130
before(function (done) {
123131
common.setup((err, factory) => {
124132
expect(err).to.not.exist()
125133

126-
spawnNodeWithId(factory, (err, node) => {
134+
factory.spawnNode((err, node) => {
127135
expect(err).to.not.exist()
128136

129137
ipfs = node

0 commit comments

Comments
 (0)