From 18bb7bd7c1cd1cf6e6a229f0811b5c58ba7923c3 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 | 7 ++++--- 2 files changed, 4 insertions(+), 4 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..a43c4c97728 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. */ @@ -141,7 +140,6 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertEqual(payload?["platform"] as? String, "cocoa") XCTAssertNotNil(payload?["debug_meta"]) XCTAssertNotNil(payload?["device"]) - XCTAssertNotNil(payload?["measurements"]) XCTAssertNotNil(payload?["profile_id"]) let profile = payload?["profile"] as? NSDictionary XCTAssertNotNil(profile?["thread_metadata"]) @@ -149,6 +147,9 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertNotNil(profile?["stacks"]) XCTAssertNotNil(profile?["frames"]) } + #endif + + #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) func testIsFramesTrackingRunning() { XCTAssertFalse(PrivateSentrySDKOnly.isFramesTrackingRunning)