diff --git a/Samples/iOS-Swift/PerformanceBenchmarks/SentrySDKPerformanceBenchmarkTests.m b/Samples/iOS-Swift/PerformanceBenchmarks/SentrySDKPerformanceBenchmarkTests.m index bb14d6b2349..59edcc1a259 100644 --- a/Samples/iOS-Swift/PerformanceBenchmarks/SentrySDKPerformanceBenchmarkTests.m +++ b/Samples/iOS-Swift/PerformanceBenchmarks/SentrySDKPerformanceBenchmarkTests.m @@ -8,6 +8,13 @@ @interface SentrySDKPerformanceBenchmarkTests : XCTestCase @implementation SentrySDKPerformanceBenchmarkTests +- (void)setUp +{ + [super setUp]; + + [[XCUIDevice sharedDevice] setOrientation:UIDeviceOrientationPortrait]; +} + - (void)testCPUBenchmark { XCTSkipIf(isSimulator() && !isDebugging());