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

Commit 8b45ad0

Browse files
author
Alan Shaw
authored
fix: add object.stat timeout leeway (#586)
fixes "expected 1.999 to be at least 2" in CI
1 parent fcdba5e commit 8b45ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object/stat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = (common, options) => {
6666
expect(err.message).to.equal('failed to get block for QmNggDXca24S6cMPEYHZjeuc4QRmofkRrAEqVL3MzzzzzZ: context deadline exceeded')
6767
}
6868

69-
expect(timeForRequest).to.not.lessThan(timeout)
69+
expect(timeForRequest).to.not.lessThan(timeout - 0.1)
7070
expect(timeForRequest).to.not.greaterThan(timeout + 1)
7171
})
7272

0 commit comments

Comments
 (0)