Skip to content

Commit

Permalink
Lowered precision
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Aug 24, 2023
1 parent ede5ada commit 8737d34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/UnitTests/TestHelpers/SnapshotTesting+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extension SwiftUI.View {
controller
).toEventually(
haveValidSnapshot(
as: .image(perceptualPrecision: 0.98, size: size, traits: traits),
as: .image(perceptualPrecision: perceptualPrecision, size: size, traits: traits),
named: "1", // Force each retry to end in `.1.png`
file: file,
line: line
Expand All @@ -84,6 +84,7 @@ private let traits: UITraitCollection = .init(displayScale: 1)

#endif

private let perceptualPrecision: Float = 0.97
private let timeout: DispatchTimeInterval = .seconds(5)
private let pollInterval: DispatchTimeInterval = .milliseconds(100)

Expand Down

0 comments on commit 8737d34

Please sign in to comment.