File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
DatadogCore/Tests/Datadog/Logs Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ class CrashLogReceiverTests: XCTestCase {
284
284
[
285
285
" mock-string-attribute " : stringAttribute,
286
286
" mock-bool-attribute " : boolAttribute
287
- ]
287
+ ] as [ String : Any ]
288
288
) )
289
289
let core = PassthroughCoreMock (
290
290
messageReceiver: CrashLogReceiver ( dateProvider: SystemDateProvider ( ) )
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ class LogsTests: XCTestCase {
133
133
XCTAssertEqual ( logMessage. count, 1 )
134
134
let message = try XCTUnwrap ( logMessage. first)
135
135
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)
137
137
}
138
138
139
139
func testItSendsGlobalLogUpdates_whenRemovettribute( ) throws {
You can’t perform that action at this time.
0 commit comments