From b4d95f37631c43d1d37bce3db8d2a18d9e577daa Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 23 Dec 2019 22:57:01 +0100 Subject: [PATCH] Tweak the "gets page stats after rendering page, with `pdfBug` set" unit-test to remove an intermittent failure on Travis I recently noticed a couple of intermittent failures on Travis, hence this patch which changes the expectation to be identical to the 'Page Request' check in the preceding test-case. --- test/unit/api_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js index 7731f5a37..f1c5309e8 100644 --- a/test/unit/api_spec.js +++ b/test/unit/api_spec.js @@ -1405,7 +1405,7 @@ describe('api', function() { let [statEntryOne, statEntryTwo, statEntryThree] = stats.times; expect(statEntryOne.name).toEqual('Page Request'); - expect(statEntryOne.end - statEntryOne.start).toBeGreaterThan(0); + expect(statEntryOne.end - statEntryOne.start).toBeGreaterThanOrEqual(0); expect(statEntryTwo.name).toEqual('Rendering'); expect(statEntryTwo.end - statEntryTwo.start).toBeGreaterThan(0);