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.
This commit is contained in:
Jonas Jenwald 2019-12-23 22:57:01 +01:00
parent b5281e56c8
commit b4d95f3763

View File

@ -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);