[go: nahoru, domu]

Skip to content

Commit

Permalink
Default lighthouse cli to use port 0
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed May 15, 2017
1 parent 78d2117 commit 3f6f0bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lighthouse-cli/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export async function runLighthouse(
try {
await initPort(flags);
launchedChrome = await getDebuggableChrome(flags);
flags.port = launchedChrome.port;
const results = await lighthouse(url, flags, config);

const artifacts = results.artifacts;
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-cli/cli-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Example: --output-path=./lighthouse-results.html`,
.default('chrome-flags', '')
.default('disable-cpu-throttling', false)
.default('output', GetValidOutputOptions()[OutputMode.domhtml])
.default('port', 9222)
.default('port', 0)
.default('max-wait-for-load', Driver.MAX_WAIT_FOR_FULLY_LOADED)
.check((argv: {listAllAudits?: boolean, listTraceCategories?: boolean, _: Array<any>}) => {
// Make sure lighthouse has been passed a url, or at least one of --list-all-audits
Expand Down

0 comments on commit 3f6f0bd

Please sign in to comment.