-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios): Disable HTTP Client errors in sentry-cocoa to avoid duplica…
…tes (#4347)
- Loading branch information
1 parent
ddc0552
commit 9385d74
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,22 @@ - (void)testCreateOptionsWithDictionaryRemovesPerformanceProperties | |
XCTAssertEqual(actualOptions.enableTracing, false, @"EnableTracing should not be passed to native"); | ||
} | ||
|
||
- (void)testCaptureFailedRequestsIsDisabled | ||
{ | ||
RNSentry *rnSentry = [[RNSentry alloc] init]; | ||
NSError *error = nil; | ||
|
||
NSDictionary *_Nonnull mockedReactNativeDictionary = @{ | ||
@"dsn" : @"https://[email protected]/123456", | ||
}; | ||
SentryOptions *actualOptions = [rnSentry createOptionsWithDictionary:mockedReactNativeDictionary | ||
error:&error]; | ||
|
||
XCTAssertNotNil(actualOptions, @"Did not create sentry options"); | ||
XCTAssertNil(error, @"Should not pass no error"); | ||
XCTAssertFalse(actualOptions.enableCaptureFailedRequests); | ||
} | ||
|
||
- (void)testCreateOptionsWithDictionaryNativeCrashHandlingDefault | ||
{ | ||
RNSentry *rnSentry = [[RNSentry alloc] init]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters