Skip to content

Commit

Permalink
Fix timestamp key equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
louiszawadzki committed Sep 7, 2023
1 parent 745f65b commit 375636d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/core/ios/Tests/DdRumTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ internal class DdRumTests: XCTestCase {
waitForExpectations(timeout: 0.5, handler: nil)
}

// TODO: Fix this test by removing ambiguity in names
// func testInternalTimestampKeyValue() {
// XCTAssertEqual(DdRumImplementation.timestampKey, CrossPlatformAttributes.timestampInMilliseconds)
// }
func testInternalTimestampKeyValue() {
let key = "_dd.timestamp"

XCTAssertEqual(DdRumImplementation.timestampKey, DatadogInternal.CrossPlatformAttributes.timestampInMilliseconds)
XCTAssertEqual(DdRumImplementation.timestampKey, DatadogSDKReactNative.CrossPlatformAttributes.timestampInMilliseconds)
}

func testStartView() throws {
rum.startView(key: "view key", name: "view name", context: ["foo": 123], timestampMs: randomTimestamp, resolve: mockResolve, reject: mockReject)
Expand Down

0 comments on commit 375636d

Please sign in to comment.