Tests: loosen threshold for affine rotate then extract

Ignores rounding errors under Rosetta emulation
This commit is contained in:
Lovell Fuller 2023-07-10 08:12:13 +01:00
parent 2bb3ea8170
commit d2f0fa855b

View File

@ -180,7 +180,7 @@ describe('Partial image extraction', function () {
if (err) throw err; if (err) throw err;
assert.strictEqual(380, info.width); assert.strictEqual(380, info.width);
assert.strictEqual(280, info.height); 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);
}); });
}); });