Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 3, 2023
1 parent c50f536 commit b21637e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#import "SentryAppStartMeasurement.h"
#import "SentryEnvelope.h"
#import "SentryEnvelopeItemType.h"
#import "SentryProfilingConditionals.h"
#import "SentryScreenFrames.h"

@class SentryDebugMeta, SentryAppStartMeasurement, SentryScreenFrames, SentryOptions,
Expand Down
7 changes: 4 additions & 3 deletions Tests/SentryTests/PrivateSentrySDKOnlyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -141,14 +140,16 @@ 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"])
XCTAssertNotNil(profile?["samples"])
XCTAssertNotNil(profile?["stacks"])
XCTAssertNotNil(profile?["frames"])
}
#endif

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)

func testIsFramesTrackingRunning() {
XCTAssertFalse(PrivateSentrySDKOnly.isFramesTrackingRunning)
Expand Down

0 comments on commit b21637e

Please sign in to comment.