Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
Since the RUMEventMatchers are used in integration tests, @testable isn't available for the Datadog module.
  • Loading branch information
fuzzybinary committed Feb 10, 2023
1 parent 2810b5d commit 570a9cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/DatadogTests/Matchers/RUMEventMatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation
import XCTest
@testable import Datadog
import Datadog

/// Provides set of assertions for single `RUMDataModel` JSON object and collection of `[RUMDataModel]`.
/// Note: this file is individually referenced by integration tests target, so no dependency on other source files should be introduced except `RUMDataModel` implementations
Expand Down Expand Up @@ -124,7 +124,7 @@ extension RUMEventMatcher: CustomStringConvertible {
extension Array where Element == RUMEventMatcher {
func filterApplicationLaunchView() -> [RUMEventMatcher] {
return filter {
(try? $0.attribute(forKeyPath: "view.url")) != RUMOffViewEventsHandlingRule.Constants.applicationLaunchViewURL
(try? $0.attribute(forKeyPath: "view.url")) != "com/datadog/application-launch/view"
}
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/DatadogTests/Matchers/RUMSessionMatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ internal class RUMSessionMatcher {
}

if let applicationLaunchIndex = visitsEventOrderedByTime.firstIndex(
where: { $0.name == RUMOffViewEventsHandlingRule.Constants.applicationLaunchViewName }
where: { $0.name == "ApplicationLaunch" }
) {
self.applicationLaunchView = visitsEventOrderedByTime[applicationLaunchIndex]
visitsEventOrderedByTime.remove(at: applicationLaunchIndex)
Expand Down

0 comments on commit 570a9cf

Please sign in to comment.