Fixed broken check so each origin is only tested once. (#3341)

https://github.com/sitespeedio/sitespeed.io/issues/3313
This commit is contained in:
Peter Hedenskog 2021-04-13 08:34:51 +02:00 committed by GitHub
parent dc36835a7c
commit fda7a7969d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,6 +84,7 @@ module.exports = {
!this.testedOrigins[group] &&
(this.options.collect === 'ALL' || this.options.collect === 'ORIGIN')
) {
this.testedOrigins[group] = true;
log.info(`Get CrUx data for domain ${group}`);
for (let formFactor of this.formFactors) {
originResult.originLoadingExperience[formFactor] = await send.get(
@ -126,7 +127,6 @@ module.exports = {
}
}
queue.postMessage(make('crux.summary', originResult, { group }));
this.testedOrigins[group] = true;
}
if (this.options.collect === 'ALL' || this.options.collect === 'URL') {