Skip to content

Commit

Permalink
RUMM-1455 Fix test build
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed Sep 7, 2021
1 parent a7ae11c commit 4dc2ecc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RUMApplicationScopeTests: XCTestCase {
}

func testWhenFirstViewIsStarted_itStartsNewSession() {
let expectation = expectation(description: "onSessionStart is called")
let expectation = self.expectation(description: "onSessionStart is called")
let onSessionStart: RUMSessionListener = { sessionId, isDiscarded in
XCTAssertTrue(sessionId.matches(regex: .uuidRegex))
XCTAssertTrue(isDiscarded)
Expand All @@ -48,7 +48,7 @@ class RUMApplicationScopeTests: XCTestCase {
}

func testWhenSessionExpires_itStartsANewOneAndTransfersActiveViews() throws {
let expectation = expectation(description: "onSessionStart is called twice")
let expectation = self.expectation(description: "onSessionStart is called twice")
expectation.expectedFulfillmentCount = 2

let onSessionStart: RUMSessionListener = { sessionId, isDiscarded in
Expand Down
2 changes: 1 addition & 1 deletion Tests/DatadogTests/Datadog/RUMMonitorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ class RUMMonitorTests: XCTestCase {
func testStartingViewCreatesNewSession() {
let keepAllSessions: Bool = .random()

let expectation = expectation(description: "onSessionStart is called")
let expectation = self.expectation(description: "onSessionStart is called")
let onSessionStart: RUMSessionListener = { sessionId, isDiscarded in
XCTAssertTrue(sessionId.matches(regex: .uuidRegex))
XCTAssertEqual(isDiscarded, !keepAllSessions)
Expand Down

0 comments on commit 4dc2ecc

Please sign in to comment.