Skip to content

Commit ad09684

Browse files
committed
Fix tests on macOS
1 parent 64eb16b commit ad09684

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/SentryTests/Helper/SentryFileManagerTests.swift

Lines changed: 2 additions & 1 deletion
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-
1511+
#if SENTRY_HAS_UIKIT
15121512
private func createWatchdogTerminationProcessors(fileManager: SentryFileManager) -> (
15131513
breadcrumbProcessor: SentryWatchdogTerminationBreadcrumbProcessor,
15141514
contextProcessor: SentryWatchdogTerminationContextProcessorWrapper,
@@ -1589,3 +1589,4 @@ private func createWatchdogTerminationObserver(fileManager: SentryFileManager) -
15891589
traceContextProcessor: processors.traceContextProcessor
15901590
)
15911591
}
1592+
#endif // SENTRY_HAS_UIKIT

Tests/SentryTests/SentrySDKTests.swift

Lines changed: 2 additions & 1 deletion
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-
69+
#if SENTRY_HAS_UIKIT
7070
private func createWatchdogTerminationProcessors(fileManager: SentryFileManager, dispatchQueueWrapper: SentryDispatchQueueWrapper = SentryDispatchQueueWrapper()) -> (
7171
breadcrumbProcessor: SentryWatchdogTerminationBreadcrumbProcessor,
7272
contextProcessor: SentryWatchdogTerminationContextProcessorWrapper,
@@ -147,6 +147,7 @@ class SentrySDKTests: XCTestCase {
147147
traceContextProcessor: processors.traceContextProcessor
148148
)
149149
}
150+
#endif //SENTRY_HAS_UIKIT
150151

151152
@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.")
152153
override func setUp() {

0 commit comments

Comments
 (0)