Skip to content

Commit

Permalink
oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Mar 8, 2024
1 parent 8ae80fc commit e29266a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/gather/gatherers/full-page-screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {waitForNetworkIdle} from '../driver/wait-for-condition.js';
// JPEG quality setting
// Exploration and examples of reports using different quality settings: https://docs.google.com/document/d/1ZSffucIca9XDW2eEwfoevrk-OTl7WQFeMf0CgeJAA8M/edit#
// Note: this analysis was done for JPEG, but now we use WEBP.
const FULL_PAGE_SCREENSHOT_QUALITY = process.env.LH_FPS_TEST ? 30 : 100;
const FULL_PAGE_SCREENSHOT_QUALITY = process.env.LH_FPS_TEST ? 100 : 30;

// https://developers.google.com/speed/webp/faq#what_is_the_maximum_size_a_webp_image_can_be
const MAX_WEBP_SIZE = 16383;
Expand Down
3 changes: 0 additions & 3 deletions core/test/gather/gatherers/full-page-screenshot-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,6 @@ describe('FullPageScreenshot gatherer', () => {
server = new Server(port);
await server.listen(port, '127.0.0.1');
serverBaseUrl = `http://localhost:${server.getPort()}`;

// Tell gatherer to use 100 quality.
process.env.LH_FPS_TEST = '1';
});

after(async () => {
Expand Down
3 changes: 3 additions & 0 deletions core/test/scripts/run-mocha-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import glob from 'glob';
import {LH_ROOT} from '../../../shared/root.js';
import {mochaGlobalSetup, mochaGlobalTeardown} from '../test-env/mocha-setup.js';

// Tell gatherer to use 100 quality for FPS tests.
process.env.LH_FPS_TEST = '1';

const failedTestsDir = `${LH_ROOT}/.tmp/failing-tests`;

if (!isMainThread && parentPort) {
Expand Down

0 comments on commit e29266a

Please sign in to comment.