Skip to content

Commit 059a8b6

Browse files
Update threshold for e2e test suite image comparison
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 98284e2 commit 059a8b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e_tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def compare_images(path_gen, path_ref):
4141
# Images are similar if only a small % of pixels differ significantly.
4242
# This value can be increased if tests are failing when they shouldn't.
4343
# It can be decreased if tests are passing when they shouldn't.
44-
if ratio_diff < 0.0075:
44+
if ratio_diff < 0.015:
4545
return True
4646
else:
47-
print("bad pixel ratio:", ratio_diff)
47+
print(f"bad pixel ratio ({path_ref.stem[8:]}): {ratio_diff}")
4848
return False
4949

5050

0 commit comments

Comments
 (0)