Skip to content

Commit

Permalink
Removed flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Oct 23, 2023
1 parent 4188326 commit 2f5a266
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Branch-TestBed/Branch-SDK-Tests/BranchUniversalObject.Test.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,24 +283,4 @@ - (void) testInitWithTitle {
XCTAssertEqual(buo.title, @"buoTitle");
}

- (void)testGetShortURLWithLP {
BranchUniversalObject *buo = [[BranchUniversalObject new] initWithTitle:@"newBUO"];
BranchLinkProperties *lp = [BranchLinkProperties new];
NSString *randomAlias = [[NSUUID UUID] UUIDString];
lp.alias = randomAlias;

XCTestExpectation *expectation = [self expectationWithDescription:@"Fetching short URL With LP"];
[buo getShortUrlWithLinkProperties:lp andCallback:^(NSString * _Nullable url, NSError * _Nullable error) {
NSString *expectedURL = [NSString stringWithFormat:@"https://bnctestbed.app.link/%@", randomAlias];
XCTAssertEqualObjects(url, expectedURL, @"URL should match the expected format");
[expectation fulfill];
}];

[self waitForExpectationsWithTimeout:5.0 handler:^(NSError *error) {
if (error) {
NSLog(@"Timeout Error: %@", error);
}
}];
}

@end

0 comments on commit 2f5a266

Please sign in to comment.