File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
RNSentryCocoaTester/RNSentryCocoaTesterTests Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ - (void)testCreateOptionsWithDictionaryNativeCrashHandlingDisabled
133133 error: &error];
134134 XCTAssertNotNil (actualOptions, @" Did not create sentry options" );
135135 XCTAssertNil (error, @" Should not pass no error" );
136- XCTAssertEqual ([actualOptions.integrations containsObject: @" SentryCrashIntegration" ], false ,
137- @" Did not disable native crash handling" );
136+ XCTAssertFalse (actualOptions.enableCrashHandler , @" Did not disable native crash handling" );
138137}
139138
140139- (void )testCreateOptionsWithDictionaryAutoPerformanceTracingDisabled
Original file line number Diff line number Diff line change @@ -264,9 +264,7 @@ - (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
264264 BOOL enableNativeCrashHandling = [mutableOptions[@" enableNativeCrashHandling" ] boolValue ];
265265
266266 if (!enableNativeCrashHandling) {
267- NSMutableArray *integrations = sentryOptions.integrations .mutableCopy ;
268- [integrations removeObject: @" SentryCrashIntegration" ];
269- sentryOptions.integrations = integrations;
267+ sentryOptions.enableCrashHandler = NO ;
270268 }
271269 }
272270
You can’t perform that action at this time.
0 commit comments