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

Commit

Permalink
adjust timeouts on sharding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Nov 8, 2017
1 parent 05e19a0 commit cba1be2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/core/files-sharding.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ describe('files dir', () => {
describe('without sharding', () => {
let ipfs

before((done) => {
before(function (done) {
this.timeout(15 * 1000)

ipfs = new IPFS({
repo: createTempRepo(),
config: {
Expand All @@ -39,7 +41,8 @@ describe('files dir', () => {
after((done) => ipfs.stop(done))

it('should be able to add dir without sharding', function (done) {
this.timeout(20 * 1000)
this.timeout(15 * 1000)

pull(
pull.values(files),
ipfs.files.createAddPullStream(),
Expand All @@ -62,7 +65,8 @@ describe('files dir', () => {
let ipfs

before(function (done) {
this.timeout(50 * 1000)
this.timeout(15 * 1000)

ipfs = new IPFS({
repo: createTempRepo(),
config: {
Expand All @@ -78,13 +82,11 @@ describe('files dir', () => {
ipfs.once('start', done)
})

after(function (done) {
this.timeout(20 * 1000)
ipfs.stop(() => done()) // ignore stop errors
})
after((done) => ipfs.stop(done))

it('should be able to add dir with sharding', function (done) {
this.timeout(20 * 1000)
this.timeout(15 * 1000)

pull(
pull.values(files),
ipfs.files.createAddPullStream(),
Expand Down

0 comments on commit cba1be2

Please sign in to comment.