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

Commit 1a942d9

Browse files
test(browser): are taking forever!!!
1 parent 74a2c8a commit 1a942d9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build": "aegir build",
1212
"test": "aegir test",
1313
"test:node": "aegir test --target node",
14-
"test:browser": "aegir test --target browser",
14+
"test:browser": "aegir test --target browser --timeout 30000",
1515
"release": "aegir release",
1616
"release-minor": "aegir release --type minor",
1717
"release-major": "aegir release --type major",

test/exporter-subtree.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = (repo) => {
3636
fileEql(files[0], smallFile, done)
3737
})
3838
)
39-
})
39+
}).timeout(10 * 1000)
4040

4141
it('export dir 1 level down', (done) => {
4242
const hash = 'QmWChcSFMNcFkfeJtNd8Yru1rE6PhtCRfewi1tMwjkwKjN/level-1'
@@ -52,7 +52,7 @@ module.exports = (repo) => {
5252
fileEql(files[1], smallFile, done)
5353
})
5454
)
55-
})
55+
}).timeout(10 * 1000)
5656

5757
it('export a non existing file', (done) => {
5858
const hash = 'QmWChcSFMNcFkfeJtNd8Yru1rE6PhtCRfewi1tMwjkwKjN/doesnotexist'
@@ -65,7 +65,7 @@ module.exports = (repo) => {
6565
done()
6666
})
6767
)
68-
})
68+
}).timeout(10 * 1000)
6969

7070
it('exports starting from non-protobuf node', (done) => {
7171
const doc = { a: { file: new CID('QmWChcSFMNcFkfeJtNd8Yru1rE6PhtCRfewi1tMwjkwKjN') } }

test/exporter.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = (repo) => {
8383
fileEql(files[0], bigFile, done)
8484
})
8585
)
86-
})
86+
}).timeout(30 * 1000)
8787

8888
it('export a small file with links using CID instead of multihash', (done) => {
8989
const cid = new CID('QmW7BDxEbGqxxSYVtn3peNPQgdDXbWkoQ6J1EFYAEuQV3Q')
@@ -96,7 +96,7 @@ module.exports = (repo) => {
9696
fileEql(files[0], bigFile, done)
9797
})
9898
)
99-
})
99+
}).timeout(30 * 1000)
100100

101101
it('export a large file > 5mb', (done) => {
102102
const hash = 'QmRQgufjp9vLE8XK2LGKZSsPCFCF6e4iynCQtNB5X2HBKE'
@@ -109,7 +109,7 @@ module.exports = (repo) => {
109109
fileEql(files[0], null, done)
110110
})
111111
)
112-
})
112+
}).timeout(30 * 1000)
113113

114114
it('export a directory', (done) => {
115115
const hash = 'QmWChcSFMNcFkfeJtNd8Yru1rE6PhtCRfewi1tMwjkwKjN'
@@ -149,7 +149,7 @@ module.exports = (repo) => {
149149
)
150150
})
151151
)
152-
})
152+
}).timeout(30 * 1000)
153153

154154
it('returns an empty stream for dir', (done) => {
155155
const hash = 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'

test/importer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module.exports = (repo) => {
161161
const expected = extend({}, defaultResults, strategies[strategy])
162162

163163
describe('importer: ' + strategy, function () {
164-
this.timeout(20 * 1000)
164+
this.timeout(30 * 1000)
165165

166166
let ipldResolver
167167

0 commit comments

Comments
 (0)