Skip to content

Commit

Permalink
fix Update regression
Browse files Browse the repository at this point in the history
  • Loading branch information
QuimMoya committed Jan 9, 2024
1 parent f7eebdf commit c911f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regression/regression.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function RunRegression()
for (let fileName of files) {
let properFileName = fileName.replaceAll("\\","/");
regressionResults[properFileName] = await CreateModelResuts(fileName);
regressionResults[properFileName] = JSON.stringify(regressionResults[properFileName]);
regressionResults[properFileName] = createHash('sha256').update(JSON.stringify(regressionResults[properFileName])).digest('hex');

}
if (update) {
Expand All @@ -44,7 +44,7 @@ async function RunRegression()
if (fileName in regressionResultsCurrent) {
if (regressionResultsCurrent[fileName] == regressionResults[fileName]) console.log(fileName+"- PASS");
else {
console.log(fileName+"- FAIL read: " + regressionResults[fileName] + " vs previous: " + regressionResultsCurrent[fileName]);
console.log(fileName+"- FAIL");
passTests = false;
}
} else console.log("Could not find:"+fileName);
Expand Down

0 comments on commit c911f24

Please sign in to comment.