Skip to content

Commit 2f5a266

Browse files
committed
Removed flaky test
1 parent 4188326 commit 2f5a266

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Branch-TestBed/Branch-SDK-Tests/BranchUniversalObject.Test.m

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -283,24 +283,4 @@ - (void) testInitWithTitle {
283283
XCTAssertEqual(buo.title, @"buoTitle");
284284
}
285285

286-
- (void)testGetShortURLWithLP {
287-
BranchUniversalObject *buo = [[BranchUniversalObject new] initWithTitle:@"newBUO"];
288-
BranchLinkProperties *lp = [BranchLinkProperties new];
289-
NSString *randomAlias = [[NSUUID UUID] UUIDString];
290-
lp.alias = randomAlias;
291-
292-
XCTestExpectation *expectation = [self expectationWithDescription:@"Fetching short URL With LP"];
293-
[buo getShortUrlWithLinkProperties:lp andCallback:^(NSString * _Nullable url, NSError * _Nullable error) {
294-
NSString *expectedURL = [NSString stringWithFormat:@"https://bnctestbed.app.link/%@", randomAlias];
295-
XCTAssertEqualObjects(url, expectedURL, @"URL should match the expected format");
296-
[expectation fulfill];
297-
}];
298-
299-
[self waitForExpectationsWithTimeout:5.0 handler:^(NSError *error) {
300-
if (error) {
301-
NSLog(@"Timeout Error: %@", error);
302-
}
303-
}];
304-
}
305-
306286
@end

0 commit comments

Comments
 (0)