Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
khmyznikov committed Nov 10, 2023
1 parent 8053643 commit da0c35c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
20 changes: 0 additions & 20 deletions .openAPI/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,26 +167,6 @@ responses:
type: boolean
features:
$ref: '#/properties/sw_features'
# maskableIcon:
# type: object
# properties:
# score:
# type: boolean
# splashScreen:
# type: object
# properties:
# score:
# type: boolean
# themedOmnibox:
# type: object
# properties:
# score:
# type: boolean
# viewport:
# type: object
# properties:
# score:
# type: boolean
artifacts:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "Connect to Func node debugger",
"type": "node",
"request": "attach",
"port": 9229
"port": 5858
}
]
}
14 changes: 2 additions & 12 deletions Report/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import childProcess, { ChildProcess, exec, spawn } from 'child_process';
const __dirname = dirname(fileURLToPath(import.meta.url));
// const _root = `${__dirname}/../..`;

const AZURE_FUNC_TIMEOUT = 1.5 * 60 * 1000;
const SPAWN_TIMEOUT = AZURE_FUNC_TIMEOUT - 10 * 1000;
const AZURE_FUNC_TIMEOUT = 2 * 60 * 1000;
const SPAWN_TIMEOUT = AZURE_FUNC_TIMEOUT - 15 * 1000;

const httpTrigger: AzureFunction = async function (
context: Context,
Expand Down Expand Up @@ -97,20 +97,13 @@ const lighthouse = (params: string[]): { child: ChildProcess; promise: Promise<s
return {
child,
promise: new Promise(resolveFunc => {

// child.on('message', chunk => {
// output = JSON.stringify(chunk);
// });
child.stdout?.on('data', chunk => {
output+=chunk;
});

child.on('exit', code => {
resolveFunc(output);
});
// child.on('error', err => {
// output = err.toString();
// });
}),
};
};
Expand Down Expand Up @@ -144,9 +137,6 @@ const audit = async (
[url, desktop ? 'desktop' : 'mobile']
);

// @ts-ignore
// spawnResult = await execute(url, desktop ? 'desktop' : 'mobile');

const spawnTimeout = setTimeout(() => {
killProcess(spawnResult?.child?.pid);
timeoutError = true;
Expand Down

0 comments on commit da0c35c

Please sign in to comment.