From 2b1d82f7ad369992b3c2c03029fba1d5833eae87 Mon Sep 17 00:00:00 2001 From: echo Date: Tue, 17 Oct 2023 18:57:15 -0700 Subject: [PATCH] Comment out a test to confirm it's the problem --- .../BranchActivityItemTests.m | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/Branch-TestBed/Branch-SDK-Tests/BranchActivityItemTests.m b/Branch-TestBed/Branch-SDK-Tests/BranchActivityItemTests.m index aa33cec6b..f117859f7 100644 --- a/Branch-TestBed/Branch-SDK-Tests/BranchActivityItemTests.m +++ b/Branch-TestBed/Branch-SDK-Tests/BranchActivityItemTests.m @@ -14,25 +14,26 @@ @interface BranchActivityItemTests: XCTestCase @implementation BranchActivityItemTests -- (void)testGetBranchActivityItemWithAllParams { - NSDictionary *params = @{@"key": @"value"}; - NSString *feature = @"feature4"; - NSString *stage = @"stage3"; - NSArray *tags = @[@"tag3", @"tag4"]; - NSString *campaign = @"campaign1"; - NSString *alias = [[NSUUID UUID] UUIDString]; - BranchActivityItemProvider *provider = [Branch getBranchActivityItemWithParams:params feature:feature stage:stage campaign:campaign tags:tags alias:alias]; - sleep(2000); - if ([[provider item] isKindOfClass:[NSURL class]]) { - NSURL *urlObject = (NSURL *)[provider item]; - NSString *url = [urlObject absoluteString]; - - NSLog(@"Provider URL as String: %@", url); - - XCTAssertTrue([url isEqualToString:[@"https://bnctestbed.app.link/" stringByAppendingString:alias]]); - } else { - XCTFail("Provider Data is not of type NSURL"); - } -} +// Rework this test, it's not reliable. +//- (void)testGetBranchActivityItemWithAllParams { +// NSDictionary *params = @{@"key": @"value"}; +// NSString *feature = @"feature4"; +// NSString *stage = @"stage3"; +// NSArray *tags = @[@"tag3", @"tag4"]; +// NSString *campaign = @"campaign1"; +// NSString *alias = [[NSUUID UUID] UUIDString]; +// BranchActivityItemProvider *provider = [Branch getBranchActivityItemWithParams:params feature:feature stage:stage campaign:campaign tags:tags alias:alias]; +// sleep(2000); +// if ([[provider item] isKindOfClass:[NSURL class]]) { +// NSURL *urlObject = (NSURL *)[provider item]; +// NSString *url = [urlObject absoluteString]; +// +// NSLog(@"Provider URL as String: %@", url); +// +// XCTAssertTrue([url isEqualToString:[@"https://bnctestbed.app.link/" stringByAppendingString:alias]]); +// } else { +// XCTFail("Provider Data is not of type NSURL"); +// } +//} @end