diff --git a/Branch-TestBed/Branch-SDK-Tests/BranchClassTests.m b/Branch-TestBed/Branch-SDK-Tests/BranchClassTests.m index d2974c1d5..ff6214c3d 100644 --- a/Branch-TestBed/Branch-SDK-Tests/BranchClassTests.m +++ b/Branch-TestBed/Branch-SDK-Tests/BranchClassTests.m @@ -200,23 +200,10 @@ - (void)testGetLatestReferringBranchLinkProperties_ClickedBranchLink { XCTAssertEqualObjects(result.campaign, @"latest campaign"); } -- (void)testGetShortURL { - XCTestExpectation *expectation = [self expectationWithDescription:@"Fetching URL"]; - - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - NSString *shortURL = [self.branch getShortURL]; - - XCTAssertNotNil(shortURL, @"URL should not be nil"); - XCTAssertTrue([shortURL hasPrefix:@"https://"], @"URL should start with 'https://'"); - - [expectation fulfill]; - }); - - [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) { - if (error) { - NSLog(@"Timeout Error: %@", error); - } - }]; +- (void)testGetShortURL { + NSString *shortURL = [self.branch getShortURL]; + XCTAssertNotNil(shortURL, @"URL should not be nil"); + XCTAssertTrue([shortURL hasPrefix:@"https://"], @"URL should start with 'https://'"); } - (void)testGetLongURLWithParamsAndChannelAndTagsAndFeatureAndStageAndAlias {