From 02e0c2dfc98ae639c987922d46fabdc27f4dd1b0 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 8 Feb 2022 21:00:30 +0000 Subject: [PATCH] Tests: arm64 requires slight threshold increase --- test/unit/metadata.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/metadata.js b/test/unit/metadata.js index a8bde5d47..30ee777cf 100644 --- a/test/unit/metadata.js +++ b/test/unit/metadata.js @@ -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; @@ -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); }); });