Skip to content

Commit

Permalink
Tests: arm64 requires slight threshold increase
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Feb 8, 2022
1 parent 968d9d7 commit 02e0c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ describe('Image metadata', function () {
sharp(fixtures.inputJpg)
.resize(64)
.withMetadata({ icc: 'cmyk' })
.toFile(output, function (err, info) {
.toFile(output, function (err) {
if (err) throw err;
sharp(output).metadata(function (err, metadata) {
if (err) throw err;
Expand All @@ -543,7 +543,7 @@ describe('Image metadata', function () {
assert.strictEqual('Relative', profile.intent);
assert.strictEqual('Printer', profile.deviceClass);
});
fixtures.assertSimilar(output, fixtures.expected('icc-cmyk.jpg'), { threshold: 0 }, done);
fixtures.assertSimilar(output, fixtures.expected('icc-cmyk.jpg'), { threshold: 1 }, done);
});
});

Expand Down

0 comments on commit 02e0c2d

Please sign in to comment.