Skip to content

Commit

Permalink
make increment the same across tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-branch committed Apr 2, 2024
1 parent 983d190 commit c1c8827
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (void)testLoggingEnabled_NOByDefault {

__block int count = 0;
logger.logCallback = ^(NSString * _Nonnull message, BranchLogLevel logLevel, NSError * _Nullable error) {
count++;
count = count + 1;
};
[logger logError:@"msg" error:nil];

Expand All @@ -40,7 +40,7 @@ - (void)testLoggingEnabled_Yes {

__block int count = 0;
logger.logCallback = ^(NSString * _Nonnull message, BranchLogLevel logLevel, NSError * _Nullable error) {
count++;
count = count + 1;
};

[logger logError:@"msg" error:nil];
Expand All @@ -56,7 +56,7 @@ - (void)testLoggingIgnoresNil {

__block int count = 0;
logger.logCallback = ^(NSString * _Nonnull message, BranchLogLevel logLevel, NSError * _Nullable error) {
count++;
count = count + 1;
};

[logger logError:nil error:nil];
Expand All @@ -69,7 +69,7 @@ - (void)testLoggingIgnoresEmptyString {

__block int count = 0;
logger.logCallback = ^(NSString * _Nonnull message, BranchLogLevel logLevel, NSError * _Nullable error) {
count++;
count = count + 1;
};

[logger logError:@"" error:nil];
Expand Down

0 comments on commit c1c8827

Please sign in to comment.