Tests: arm64 requires slight threshold increase

This commit is contained in:
Lovell Fuller 2022-02-08 21:00:30 +00:00
parent 968d9d7008
commit 02e0c2dfc9

View File

@ -527,7 +527,7 @@ describe('Image metadata', function () {
sharp(fixtures.inputJpg) sharp(fixtures.inputJpg)
.resize(64) .resize(64)
.withMetadata({ icc: 'cmyk' }) .withMetadata({ icc: 'cmyk' })
.toFile(output, function (err, info) { .toFile(output, function (err) {
if (err) throw err; if (err) throw err;
sharp(output).metadata(function (err, metadata) { sharp(output).metadata(function (err, metadata) {
if (err) throw err; if (err) throw err;
@ -543,7 +543,7 @@ describe('Image metadata', function () {
assert.strictEqual('Relative', profile.intent); assert.strictEqual('Relative', profile.intent);
assert.strictEqual('Printer', profile.deviceClass); 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);
}); });
}); });