Skip to content

Commit 6dcc3a7

Browse files
yonaskolbclaude
andcommitted
Fix Swift Testing error matcher failing on Linux
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 6dcc3a7

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)