diff --git a/Tests/Client.Integration.Tests/Pipeline/CloneStateBehavior_Tests.cs b/Tests/Client.Integration.Tests/Pipeline/CloneStateBehavior_Tests.cs index 33bff6f0b..9002980d4 100644 --- a/Tests/Client.Integration.Tests/Pipeline/CloneStateBehavior_Tests.cs +++ b/Tests/Client.Integration.Tests/Pipeline/CloneStateBehavior_Tests.cs @@ -2,7 +2,6 @@ namespace CloneStateBehavior { using Shouldly; using System; - using System.Net.Http; using System.Threading.Tasks; using TestApp.Client.Features.Application; using TestApp.Client.Features.CloneTest; @@ -73,25 +72,5 @@ public async Task RollBackStateAndPublish_When_Exception() CounterState.Guid.Equals(preActionGuid).ShouldBeTrue(); } - public async Task WillNotRollbackState_When_ExceptionOccursInAnEndpointOnServer() - { - // Arrange - // Setup know state. - CounterState.Initialize(aCount: 22); - Guid preActionGuid = CounterState.Guid; - - var throwServerSideExceptionAction = new ThrowServerSideExceptionAction - { - Message = "Response status code does not indicate success: 500 (Internal Server Error)." - }; - - // Act - Exception exception = await Shouldly.Should.ThrowAsync(async () => - await Send(throwServerSideExceptionAction)); - - // Assert - exception.Message.ShouldBe(throwServerSideExceptionAction.Message); - CounterState.Guid.Equals(preActionGuid).ShouldBeFalse(); - } } } \ No newline at end of file