Skip to content

Commit 26e2888

Browse files
committed
Fix tests
1 parent ad09684 commit 26e2888

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/SentryTests/Helper/SentryFileManagerTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ private extension SentryFileManagerTests {
15081508
}
15091509

15101510
// MARK: - Helper Fixture for Watchdog Termination Processors
1511-
#if SENTRY_HAS_UIKIT
1511+
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
15121512
private func createWatchdogTerminationProcessors(fileManager: SentryFileManager) -> (
15131513
breadcrumbProcessor: SentryWatchdogTerminationBreadcrumbProcessor,
15141514
contextProcessor: SentryWatchdogTerminationContextProcessorWrapper,
@@ -1589,4 +1589,4 @@ private func createWatchdogTerminationObserver(fileManager: SentryFileManager) -
15891589
traceContextProcessor: processors.traceContextProcessor
15901590
)
15911591
}
1592-
#endif // SENTRY_HAS_UIKIT
1592+
#endif // os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)

Tests/SentryTests/SentrySDKTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SentrySDKTests: XCTestCase {
6666
private var fixture: Fixture!
6767

6868
// MARK: - Helper Fixtures for Watchdog Termination Processors
69-
#if SENTRY_HAS_UIKIT
69+
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
7070
private func createWatchdogTerminationProcessors(fileManager: SentryFileManager, dispatchQueueWrapper: SentryDispatchQueueWrapper = SentryDispatchQueueWrapper()) -> (
7171
breadcrumbProcessor: SentryWatchdogTerminationBreadcrumbProcessor,
7272
contextProcessor: SentryWatchdogTerminationContextProcessorWrapper,
@@ -147,7 +147,7 @@ class SentrySDKTests: XCTestCase {
147147
traceContextProcessor: processors.traceContextProcessor
148148
)
149149
}
150-
#endif //SENTRY_HAS_UIKIT
150+
#endif // os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
151151

152152
@available(*, deprecated, message: "This is marked deprecated as a workaround (for the workaround deprecating the Fixture.init method) until we can remove SentryUserFeedback in favor of SentryFeedback. When SentryUserFeedback is removed, this deprecation annotation can be removed.")
153153
override func setUp() {

0 commit comments

Comments
 (0)