Skip to content

Commit

Permalink
again fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann committed Sep 20, 2024
1 parent da8ed8d commit 9ebd988
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)

@testable import Sentry
import SentryTestUtils
import XCTest

Expand Down Expand Up @@ -72,7 +73,7 @@ class SentryWatchdogTerminationIntegrationTests: XCTestCase {
let sut = givenIntegration()
sut.install(with: Options())

Dynamic(sut).anrDetected()
Dynamic(sut).anrDetectedWithType(SentryANRType.unknown)

let appState = try XCTUnwrap(fixture.fileManager.readAppState())

Expand Down
4 changes: 2 additions & 2 deletions Tests/SentryTests/SentrySDKTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -746,11 +746,11 @@ class SentrySDKTests: XCTestCase {
let anrTrackingIntegration = SentrySDK.currentHub().getInstalledIntegration(SentryANRTrackingIntegration.self)

SentrySDK.pauseAppHangTracking()
Dynamic(anrTrackingIntegration).anrDetected()
Dynamic(anrTrackingIntegration).anrDetectedWithType(SentryANRType.unknown)
XCTAssertEqual(0, client.captureEventWithScopeInvocations.count)

SentrySDK.resumeAppHangTracking()
Dynamic(anrTrackingIntegration).anrDetected()
Dynamic(anrTrackingIntegration).anrDetectedWithType(SentryANRType.unknown)

if SentryDependencyContainer.sharedInstance().crashWrapper.isBeingTraced() {
XCTAssertEqual(0, client.captureEventWithScopeInvocations.count)
Expand Down

0 comments on commit 9ebd988

Please sign in to comment.