Skip to content

Commit

Permalink
Update SentryTests.m
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Sep 25, 2024
1 parent b6de0e1 commit 2438d73
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Tests/SentryTests/SentryTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ - (void)setUp
[SentrySDK.currentHub bindClient:nil];
}

- (void)testVersion
{
NSDictionary *info = [[NSBundle bundleForClass:[SentryClient class]] infoDictionary];
NSString *version = [NSString stringWithFormat:@"%@", info[@"CFBundleShortVersionString"]];
if ([info[@"CFBundleIdentifier"] isEqualToString:@"io.sentry.Sentry"]) {
// This test is running on a bundle that is not the SDK
// (code was loaded inside an app for example)
// in this case, we don't care about asserting our hard coded value matches
// since this will be the app version instead of our SDK version.
XCTAssert([version isEqualToString:SentryMeta.versionString],
@"Version of bundle:%@ not equal to version of SentryMeta:%@", version,
SentryMeta.versionString);
}
}

- (void)testSharedClient
{
NSError *error = nil;
Expand Down

0 comments on commit 2438d73

Please sign in to comment.