Skip to content

Commit e74b1e1

Browse files
yonaskolbclaude
andauthored
Fix Swift Testing error matcher failing on Linux (#1657)
Cast the thrown error to SpecParsingError instead of coercing it to CustomStringConvertible, which goes through NSError bridging and yields a different description on Linux. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 366592b commit e74b1e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Tests/ProjectSpecTests/InvalidConfigsFormatTests.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct InvalidConfigsMappingFormatTests {
3636
#expect {
3737
try Project(path: arguments.fixturePath)
3838
} throws: { actualError in
39-
(actualError as any CustomStringConvertible).description
39+
(actualError as? SpecParsingError)?.description
4040
== arguments.expectedError.description
4141
}
4242
}

0 commit comments

Comments
 (0)