From 8b45ad0a5673fa254a63cf7d10c931cc448edbc4 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 4 Feb 2020 14:01:00 +0000 Subject: [PATCH] fix: add object.stat timeout leeway (#586) fixes "expected 1.999 to be at least 2" in CI --- src/object/stat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/stat.js b/src/object/stat.js index b49ba3af..31baa201 100644 --- a/src/object/stat.js +++ b/src/object/stat.js @@ -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) })