From d2f0fa855b42d799483cffe55fd013a18bc05ed6 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Mon, 10 Jul 2023 08:12:13 +0100 Subject: [PATCH] Tests: loosen threshold for affine rotate then extract Ignores rounding errors under Rosetta emulation --- test/unit/extract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/extract.js b/test/unit/extract.js index 760e90ef7..efbb75810 100644 --- a/test/unit/extract.js +++ b/test/unit/extract.js @@ -180,7 +180,7 @@ describe('Partial image extraction', function () { if (err) throw err; assert.strictEqual(380, info.width); assert.strictEqual(280, info.height); - fixtures.assertSimilar(fixtures.expected('rotate-extract-45.jpg'), data, done); + fixtures.assertSimilar(fixtures.expected('rotate-extract-45.jpg'), data, { threshold: 7 }, done); }); });