Merge pull request #11440 from Snuffleupagus/stats-pdfBug-tweak-test

Tweak the "gets page stats after rendering page, with `pdfBug` set" unit-test to remove an intermittent failure on Travis
This commit is contained in:
Tim van der Meij 2019-12-23 23:44:55 +01:00 committed by GitHub
commit 32c3434c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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