From c1c88279a786a35d589021ebd93abf050056aca1 Mon Sep 17 00:00:00 2001 From: echo Date: Mon, 1 Apr 2024 19:27:02 -0700 Subject: [PATCH] make increment the same across tests. --- Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m b/Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m index 327ca72c2..94badb12d 100644 --- a/Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m +++ b/Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m @@ -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]; @@ -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]; @@ -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]; @@ -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];