@@ -284,21 +284,19 @@ - (void) testInitWithTitle {
284284}
285285
286286- (void )testGetShortURLWithLP {
287- BranchUniversalObject *buo = [[BranchUniversalObject new ] initWithTitle: @" buoTitle " ];
287+ BranchUniversalObject *buo = [[BranchUniversalObject new ] initWithTitle: @" newBUO " ];
288288 BranchLinkProperties *lp = [BranchLinkProperties new ];
289289 NSString *randomAlias = [[NSUUID UUID ] UUIDString ];
290290 lp.alias = randomAlias;
291291
292- XCTestExpectation *expectation = [self expectationWithDescription: @" Fetching URL With LP" ];
293- dispatch_async (dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0 ), ^{
294- [buo getShortUrlWithLinkProperties: lp andCallback: ^(NSString * _Nullable url, NSError * _Nullable error) {
295- NSString *expectedURL = [NSString stringWithFormat: @" https://bnctestbed.app.link/%@ " , randomAlias];
296- XCTAssertEqualObjects (url, expectedURL, @" URL should match the expected format" );
297- [expectation fulfill ];
298- }];
299- });
300-
301- [self waitForExpectationsWithTimeout: 5 handler: ^(NSError *error) {
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) {
302300 if (error) {
303301 NSLog (@" Timeout Error: %@ " , error);
304302 }
0 commit comments