From 8e0cb3d5286f65c45f78e4345940f2d1664a6bb4 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Wed, 2 Aug 2023 08:46:17 +0200 Subject: [PATCH] test fix --- Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h | 1 - Tests/SentryTests/PrivateSentrySDKOnlyTests.swift | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h index 086beeaf8eb..79674c49cba 100644 --- a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h +++ b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h @@ -2,7 +2,6 @@ #import "SentryAppStartMeasurement.h" #import "SentryEnvelope.h" #import "SentryEnvelopeItemType.h" -#import "SentryProfilingConditionals.h" #import "SentryScreenFrames.h" @class SentryDebugMeta, SentryAppStartMeasurement, SentryScreenFrames, SentryOptions, diff --git a/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift b/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift index 96e6ee97aa6..83cc2bd0c5e 100644 --- a/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift +++ b/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift @@ -120,8 +120,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertEqual(PrivateSentrySDKOnly.options.enabled, true) } - #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) - + #if !os(tvOS) && !os(watchOS) /** * Smoke Tests profiling via PrivateSentrySDKOnly. Actual profiling unit tests are done elsewhere. */ @@ -149,6 +148,9 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertNotNil(profile?["stacks"]) XCTAssertNotNil(profile?["frames"]) } + #endif + + #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) func testIsFramesTrackingRunning() { XCTAssertFalse(PrivateSentrySDKOnly.isFramesTrackingRunning)