Skip to content

Commit

Permalink
Changing default location and adjusting README
Browse files Browse the repository at this point in the history
  • Loading branch information
tkadlec committed Apr 14, 2021
1 parent f3ebdfe commit dc1e31d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ By default, WebPageTest's GitHub Action will run tests whenever the event (pull_
The tests will be run with the following WebPageTest settings:

- Location: Dulles, VA
- Browser: Chrome on a Motorola G4
- Connection Type: 3G connection
- Browser: Chrome on an emulated Moto G4
- Connection Type: 4G connection
- Number of test run per URL: 3
- First view only (no repeat views tested)
- The test results will be checked every **5** seconds, up to a limit of **240s**. If no results are returned by then, the test will timeout and fail.
Expand Down
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const runTest = (wpt, url, options) => {
let tempOptions = JSON.parse(JSON.stringify(options));

return new Promise((resolve, reject) => {
core.info(`Submitting test for ${url}...`);
core.info(`Submitting test for ${url} ...`);
wpt.runTest(url, tempOptions, async(err, result) => {
try {
if (result) {
Expand Down Expand Up @@ -101,10 +101,11 @@ async function run() {
let options = {
"firstViewOnly": true,
"runs": 3,
"location": 'Dulles_MotoG4',
"location": 'Dulles:Chrome',
"connectivity": '4G',
"pollResults": 5,
"timeout": 240
"timeout": 240,
"emulateMobile": true
}
if (WPT_OPTIONS) {
let settings = require(`${DIRECTORY}/${WPT_OPTIONS}`);
Expand Down

0 comments on commit dc1e31d

Please sign in to comment.