Skip to content

Commit c0a7243

Browse files
antonisclaude
andcommitted
fix(test): drop duplicate testStartBeforeBreadcrumbs… method
The migration in the previous commit added a `testStart…KeepsBreadcrumbWhenDevServerUrlIsNotPassed…` method that already existed in the `RNSentryStart Tests` block. Compile failed in CI with "Duplicate declaration of method". The earlier `@interface RNSentryStart Tests` already covers this scenario; the migrated copy is redundant. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 25df0c9 commit c0a7243

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -819,27 +819,6 @@ - (void)testStartCreateOptionsWithDictionaryEnableLogsDisabled
819819
XCTAssertFalse(enableLogs, @"enableLogs should be disabled");
820820
}
821821

822-
#pragma mark - RNSentryStart beforeBreadcrumb edge case
823-
824-
- (void)
825-
testStartBeforeBreadcrumbsCallbackKeepsBreadcrumbWhenDevServerUrlIsNotPassedAndDsnDoesNotMatch
826-
{
827-
NSError *error = nil;
828-
829-
NSDictionary *_Nonnull mockedDictionary = @{ // dsn is always validated in SentryOptions initialization
830-
@"dsn" : @"https://abc@def.ingest.sentry.io/1234567"
831-
};
832-
SentryOptions *options = [RNSentryStart createOptionsWithDictionary:mockedDictionary
833-
error:&error];
834-
SentryBreadcrumb *breadcrumb = [[SentryBreadcrumb alloc] init];
835-
breadcrumb.type = @"http";
836-
breadcrumb.data = @{ @"url" : @"http://testurl.com/service" };
837-
838-
SentryBreadcrumb *result = options.beforeBreadcrumb(breadcrumb);
839-
840-
XCTAssertEqual(breadcrumb, result);
841-
}
842-
843822
#pragma mark - RNSentryStart ignoreErrors Tests
844823

845824
- (void)testStartIgnoreErrorsDropsMatchingExceptionValue

0 commit comments

Comments
 (0)