Skip to content

Commit f1c493c

Browse files
committed
ERODE thrice instead of twice
1 parent 43a39d2 commit f1c493c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit/visual/visualTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const COLOR_THRESHOLD = 15;
1111
// By how many pixels can the snapshot shift? This is
1212
// often useful to accommodate different text rendering
1313
// across environments.
14-
const SHIFT_THRESHOLD = 1;
14+
const SHIFT_THRESHOLD = 3;
1515

1616
// The max side length to shrink test images down to before
1717
// comparing, for performance.
@@ -111,7 +111,6 @@ export async function checkMatch(actual, expected, p5) {
111111
cnv.image(expectedWithBg, 0, 0);
112112
for (let i = 0; i < SHIFT_THRESHOLD; i++) {
113113
cnv.filter(ERODE, false);
114-
cnv.filter(ERODE, false);
115114
}
116115
const diff = cnv.get();
117116
cnv.remove();

0 commit comments

Comments
 (0)