File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
RNSentryCocoaTester/RNSentryCocoaTesterTests Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ - (void)testValidUser
1414 [expected setIpAddress: @" 192.168.1.1" ];
1515 [expected setEmail: @" test@example.com" ];
1616 [expected setUsername: @" testuser" ];
17- [expected setSegment: @" testsegment" ];
1817 [expected setData: @{
1918 @" foo" : @" bar" ,
2019 @" baz" : @123 ,
@@ -26,7 +25,6 @@ - (void)testValidUser
2625 @" ip_address" : @" 192.168.1.1" ,
2726 @" email" : @" test@example.com" ,
2827 @" username" : @" testuser" ,
29- @" segment" : @" testsegment" ,
3028 }
3129 otherUserKeys: @{
3230 @" foo" : @" bar" ,
@@ -67,7 +65,6 @@ - (void)testInvalidUser
6765 @" ip_address" : @ {},
6866 @" email" : @ {},
6967 @" username" : @ {},
70- @" segment" : @[],
7168 }
7269 otherUserKeys: nil ];
7370
@@ -84,7 +81,6 @@ - (void)testPartiallyInvalidUser
8481 @" ip_address" : @ {},
8582 @" email" : @ {},
8683 @" username" : @ {},
87- @" segment" : @[],
8884 }
8985 otherUserKeys: nil ];
9086
@@ -100,7 +96,6 @@ - (void)testNullValuesUser
10096 @" ip_address" : [NSNull null ],
10197 @" email" : [NSNull null ],
10298 @" username" : [NSNull null ],
103- @" segment" : [NSNull null ],
10499 }
105100 otherUserKeys: nil ];
106101
Original file line number Diff line number Diff line change @@ -709,10 +709,6 @@ + (SentryUser *_Nullable)userFrom:(NSDictionary *)userKeys
709709 if ([username isKindOfClass: NSString .class ]) {
710710 [userInstance setUsername: username];
711711 }
712- id segment = [userKeys valueForKey: @" segment" ];
713- if ([segment isKindOfClass: NSString .class ]) {
714- [userInstance setSegment: segment];
715- }
716712
717713 if ([userDataKeys isKindOfClass: NSDictionary .class ]) {
718714 [userInstance setData: userDataKeys];
You can’t perform that action at this time.
0 commit comments