Skip to content

Commit

Permalink
Tweak tolerance in render tests to expose false passing test
Browse files Browse the repository at this point in the history
fill-extrusion-vertical-gradient/default was [falsely passing - Issue #14784](mapbox/mapbox-gl-native#14784).
This tweak makes the test fail while keeping other tests passing.
  • Loading branch information
astojilj committed May 31, 2019
1 parent 884db58 commit 059e375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/lib/render.js
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ export function run(implementation, ignores, render) {

const diff = pixelmatch(
actualImg.data, expectedImg.data, diffImg.data,
width, height, {threshold: 0.13}) / (width * height);
width, height, {threshold: 0.1285}) / (width * height);

if (diff < minDiff) {
minDiff = diff;

0 comments on commit 059e375

Please sign in to comment.