Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c6e9090

Browse files
committed
nameof is not exactly unique and the two tests can race and clash
1 parent 09fca34 commit c6e9090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UnitTests/GitHub.App/Caches/CredentialCacheTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public class TheInvalidateMethod
172172
[Fact]
173173
public async Task InvalidatesTheCredential()
174174
{
175-
const string key = nameof(InvalidatesTheCredential);
175+
const string key = "TheInvalidateMethod.InvalidatesTheCredential";
176176
using (var credentialCache = new CredentialCache())
177177
{
178178
var credential = Tuple.Create("somebody", "somebody's secret");
@@ -211,7 +211,7 @@ public class TheInvalidateObjectMethod
211211
[Fact]
212212
public async Task InvalidatesTheCredential()
213213
{
214-
const string key = nameof(InvalidatesTheCredential);
214+
const string key = "TheInvalidateObjectMethod.InvalidatesTheCredential";
215215
using (var credentialCache = new CredentialCache())
216216
{
217217
var credential = Tuple.Create("somebody", "somebody's secret");

0 commit comments

Comments
 (0)