Skip to content

Commit a9f909b

Browse files
committed
updated threshold for tests
1 parent 7ec24f5 commit a9f909b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/visual/visualTest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export async function checkMatch(actual, expected, p5) {
135135
width,
136136
height,
137137
{
138-
threshold: 0.6,
138+
threshold: 0.5,
139139
includeAA: false,
140140
alpha: 0.1
141141
}
@@ -290,6 +290,7 @@ function findClusterSize(pixels, startX, startY, width, height, radius, visited)
290290
// If most pixels (>80%) in the cluster have ≤2 neighbors, it's likely a line shift
291291
isLineShift = linelikePixels / clusterPixels.length > 0.8;
292292
}
293+
293294
return {
294295
size,
295296
pixels: clusterPixels,

0 commit comments

Comments
 (0)