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

Commit cba1be2

Browse files
committed
adjust timeouts on sharding tests
1 parent 05e19a0 commit cba1be2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

test/core/files-sharding.spec.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ describe('files dir', () => {
2323
describe('without sharding', () => {
2424
let ipfs
2525

26-
before((done) => {
26+
before(function (done) {
27+
this.timeout(15 * 1000)
28+
2729
ipfs = new IPFS({
2830
repo: createTempRepo(),
2931
config: {
@@ -39,7 +41,8 @@ describe('files dir', () => {
3941
after((done) => ipfs.stop(done))
4042

4143
it('should be able to add dir without sharding', function (done) {
42-
this.timeout(20 * 1000)
44+
this.timeout(15 * 1000)
45+
4346
pull(
4447
pull.values(files),
4548
ipfs.files.createAddPullStream(),
@@ -62,7 +65,8 @@ describe('files dir', () => {
6265
let ipfs
6366

6467
before(function (done) {
65-
this.timeout(50 * 1000)
68+
this.timeout(15 * 1000)
69+
6670
ipfs = new IPFS({
6771
repo: createTempRepo(),
6872
config: {
@@ -78,13 +82,11 @@ describe('files dir', () => {
7882
ipfs.once('start', done)
7983
})
8084

81-
after(function (done) {
82-
this.timeout(20 * 1000)
83-
ipfs.stop(() => done()) // ignore stop errors
84-
})
85+
after((done) => ipfs.stop(done))
8586

8687
it('should be able to add dir with sharding', function (done) {
87-
this.timeout(20 * 1000)
88+
this.timeout(15 * 1000)
89+
8890
pull(
8991
pull.values(files),
9092
ipfs.files.createAddPullStream(),

0 commit comments

Comments
 (0)