From 12eb2d91b03007f17e3827ef6a4ada1df878f1e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Nov 2023 04:26:15 +0000 Subject: [PATCH 1/2] Build(deps): Bump xunit from 2.5.3 to 2.6.0 Bumps [xunit](https://github.com/xunit/xunit) from 2.5.3 to 2.6.0. - [Commits](https://github.com/xunit/xunit/compare/2.5.3...2.6.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 53153f91..d0b0f2b5 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -24,7 +24,7 @@ - + From 486b306a01e91b35e7b2d034425f87d564fdf329 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Khan-Sunde Date: Wed, 1 Nov 2023 07:10:27 +0100 Subject: [PATCH 2/2] Build fix. --- src/Snapx.Tests/Core/DistributedMutexTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Snapx.Tests/Core/DistributedMutexTests.cs b/src/Snapx.Tests/Core/DistributedMutexTests.cs index 25f8f6c2..fc82c0f2 100644 --- a/src/Snapx.Tests/Core/DistributedMutexTests.cs +++ b/src/Snapx.Tests/Core/DistributedMutexTests.cs @@ -8,7 +8,7 @@ namespace Snapx.Tests.Core; -public class DistributedMutexTests +public sealed class DistributedMutexTests { [Fact] public async Task TestAcquireAsync() @@ -52,7 +52,7 @@ public async Task TestAcquireAsync_ReturnsInvalidChallengeValue() await using var distributedMutex = new DistributedMutex(distributedMutexClientMock.Object, new LogProvider.NoOpLogger(), mutexName, CancellationToken.None); - var ex = await Assert.ThrowsAsync(async () => await distributedMutex.TryAquireAsync()); + var ex = await Assert.ThrowsAsync(() => distributedMutex.TryAquireAsync()); Assert.Equal($"Challenge should not be null or empty. Mutex: {mutexName}. Challenge: {expectedChallenge}", ex.Message); Assert.False(distributedMutex.Acquired); @@ -198,4 +198,4 @@ public async Task TestDisposeAsync_Mutex_Is_Not_Acquired() distributedMutexClientMock.Verify(x => x .ReleaseLockAsync(It.IsAny(), It.IsAny(), It.IsAny()), Times.Never); } -} \ No newline at end of file +}