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

Commit

Permalink
fix: add object.stat timeout leeway (#586)
Browse files Browse the repository at this point in the history
fixes "expected 1.999 to be at least 2" in CI
  • Loading branch information
Alan Shaw authored Feb 4, 2020
1 parent fcdba5e commit 8b45ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = (common, options) => {
expect(err.message).to.equal('failed to get block for QmNggDXca24S6cMPEYHZjeuc4QRmofkRrAEqVL3MzzzzzZ: context deadline exceeded')
}

expect(timeForRequest).to.not.lessThan(timeout)
expect(timeForRequest).to.not.lessThan(timeout - 0.1)
expect(timeForRequest).to.not.greaterThan(timeout + 1)
})

Expand Down

0 comments on commit 8b45ad0

Please sign in to comment.