We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7138f1b commit a918a1cCopy full SHA for a918a1c
Tests/AWSLambdaEventsTests/Utils/DateWrapperTests.swift
@@ -64,8 +64,13 @@ struct DateWrapperTests {
64
65
let date = "2020-03-26T16:53:05Z" // missing fractional seconds
66
let json = #"{"date":"\#(date)"}"#
67
- #expect(throws: (any Error).self) {
68
- try JSONDecoder().decode(TestEvent.self, from: json.data(using: .utf8)!)
+#if swift(<6.2)
+ let error = (any Error).self
69
+#else
70
+ let error = Never.self
71
+#endif
72
+ #expect(throws: error) {
73
+ try JSONDecoder().decode(TestEvent.self, from: json.data(using: .utf8)!)
74
}
75
76
0 commit comments