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

Commit c23d558

Browse files
committed
fix(tests): add a larger timeout to cope with CI slowness
1 parent ac57378 commit c23d558

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/files.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module.exports = (common) => {
1919
let directoryContent
2020
let ipfs
2121

22-
before((done) => {
22+
before(function (done) {
23+
// CI is slow
24+
this.timeout(20 * 1000)
25+
2326
smallFile = fs.readFileSync(path.join(__dirname, './data/testfile.txt'))
2427
bigFile = fs.readFileSync(path.join(__dirname, './data/15mb.random'))
2528

src/object.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ module.exports = (common) => {
1212
let ipfs
1313

1414
before((done) => {
15+
// CI is slow
16+
this.timeout(20 * 1000)
17+
1518
common.setup((err, factory) => {
1619
expect(err).to.not.exist
1720
factory.spawnNode((err, node) => {

0 commit comments

Comments
 (0)