Skip to content

Commit 88329b7

Browse files
committed
Used interlocked increment.
1 parent a1b7416 commit 88329b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Authentication/Authentication.Test/TokenCache/TokenCacheStorageTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Microsoft.Graph.PowerShell.Authentication.TokenCache;
44
using System;
55
using System.Text;
6+
using System.Threading;
67
using System.Threading.Tasks;
78
using Xunit;
89

@@ -132,7 +133,7 @@ public void ShouldMakeParallelCallsToTokenCache()
132133
}
133134

134135
CleanTokenCache(index.ToString());
135-
count++;
136+
Interlocked.Increment(ref count);
136137
});
137138

138139
// Assert

0 commit comments

Comments
 (0)