Browse Source

Merge pull request #20143 from abpframework/unit-test-error

Fix unit test.
pull/20155/head
liangshiwei 2 years ago
committed by GitHub
parent
commit
de0a317c3c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs
  2. 2
      framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs

2
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs

@ -108,7 +108,7 @@ public class ExceptionTestController_Tests : AspNetCoreMvcTestBase
var result = await GetResponseAsObjectAsync<RemoteServiceErrorResponse>("/api/exception-test/ExceptionOnUowSaveChange", HttpStatusCode.Conflict);
result.Error.ShouldNotBeNull();
result.Error.Message.ShouldBe("The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning.");
result.Error.Message.ShouldBe("The data you have submitted has already been changed by another user. Discard your changes and try again.");
#pragma warning disable 4014
_fakeExceptionSubscriber

2
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestPage_Tests.cs

@ -156,7 +156,7 @@ public class ExceptionTestPage_Tests : AspNetCoreMvcTestBase
var result = await GetResponseAsObjectAsync<RemoteServiceErrorResponse>("/api/exception-test/ExceptionOnUowSaveChange", HttpStatusCode.Conflict);
result.Error.ShouldNotBeNull();
result.Error.Message.ShouldBe("The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning.");
result.Error.Message.ShouldBe("The data you have submitted has already been changed by another user. Discard your changes and try again.");
#pragma warning disable 4014
_fakeExceptionSubscriber

Loading…
Cancel
Save