Skip to content

Commit 24a862b

Browse files
committed
Use TestHelper.UniqueName in TestCancellationDoesNotLeadToLostSignal
Prevents possibility of overlap between net472 and net8.0 runs
1 parent a21e317 commit 24a862b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DistributedLock.Tests/Tests/WaitHandles/WaitHandleDistributedSemaphoreTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void TestGetSafeLockNameCompat()
8383
[Test]
8484
public async Task TestCancellationDoesNotLeadToLostSignal([Values] bool async)
8585
{
86-
var semaphore = new WaitHandleDistributedSemaphore(nameof(this.TestCancellationDoesNotLeadToLostSignal), 2);
86+
var semaphore = new WaitHandleDistributedSemaphore(TestHelper.UniqueName, 2);
8787
await using var _ = await semaphore.AcquireAsync(TimeSpan.FromSeconds(1));
8888

8989
Random random = new();

0 commit comments

Comments
 (0)