Skip to content

Commit 68621cb

Browse files
committed
Maybe fix explicit annotation error.
1 parent 7abfdcc commit 68621cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DatadogCore/Tests/Datadog/Logs/CrashLogReceiverTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class CrashLogReceiverTests: XCTestCase {
284284
[
285285
"mock-string-attribute": stringAttribute,
286286
"mock-bool-attribute": boolAttribute
287-
]
287+
] as [String: Any]
288288
))
289289
let core = PassthroughCoreMock(
290290
messageReceiver: CrashLogReceiver(dateProvider: SystemDateProvider())

DatadogLogs/Tests/LogsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class LogsTests: XCTestCase {
133133
XCTAssertEqual(logMessage.count, 1)
134134
let message = try XCTUnwrap(logMessage.first)
135135
let baggage: GlobalLogAttributes = try XCTUnwrap(message.baggage(forKey: GlobalLogAttributes.key))
136-
XCTAssertEqual(baggage.attributes[attributeKey] as? String, attributeValue)
136+
XCTAssertEqual((baggage.attributes[attributeKey] as? AnyCodable)?.value as? String, attributeValue)
137137
}
138138

139139
func testItSendsGlobalLogUpdates_whenRemovettribute() throws {

0 commit comments

Comments
 (0)